ReportOutput.printTextUTF8(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prints a report to a UTF-8 format.
public:
virtual void printTextUTF8(System::String ^ _filename);
public virtual void printTextUTF8 (string _filename);
abstract member printTextUTF8 : string -> unit
override this.printTextUTF8 : string -> unit
Public Overridable Sub printTextUTF8 (_filename As String)
Parameters
- _filename
- String
A string that specifies the name of the file that the report is printed to.
Remarks
UTF-8 is a method of character encoding that allows for both single and multibyte characters in one string.
The following example shows a call to the printTextUTF8 method.
void printTextUTF8()
{
ReportOutput reportOutput;
printJobHeader printJobHeader;
while select printJobHeader where printJobHeader.createdDateTime >=
str2datetime("01/01/2011 12:00:00", 123)
{
print printJobHeader.jobDescription;
reportOutput = new ReportOutput(printJobHeader);
reportOutput.printTextUTF8("c:\\report.txt");
}
}