![]() |
![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| HelpTexas Global ClientCreating Print ReportsCreate TScript File |
Firstly we create a TScript file on the local hard drive, with the file extension of .ts. You should use a file name that describes the report. The basic report will include the texas pdf library (#include “PDFLibrary.ts”) and a main method which has the parameters of the executed methods (public main(variable parameters)).
For example a hello world report would look like:-
#include "PDFLibrary.ts"
public main(variable parameters) {
PDFDocument pdf;
pdf.SelectFont(PDFDocument.FONT_NEW_TIMES_ROMAN,12);
pdf.WriteText("Hello World",40,650);
pdf.SaveDocument("HelloWorld.pdf");
}
Copyright © 2008, Ekky Software Pty Ltd.