ReportOutput.printTextUTF8 Method [AX 2012]

Prints a report to a UTF-8 format.

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.

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

Community Additions

ADD
Show: