Share via


ReportOutput.printTextUTF8 Method

Prints a report to a UTF-8 format.

Syntax

public void printTextUTF8(str filename)

Run On

Called

Parameters

  • filename
    Type: str
    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.

Examples

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"); 
    } 
     
}

See Also

Reference

ReportOutput Class