Use the textReport.printFile() function to add the contents of a text file to the report. The engine assumes each line of the file fits on the report page and does not truncate or wrap any content.
textReport.printFile(
fileName STRING in)
The following example clears the error messages for the report:
myReport TextReport = new TextReport();
...
myReport.printFile("C:/temp/schedule.txt");