![]() |
![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| HelpTexas Global ClientCreating Print ReportsExecuting TScript File Locally |
Executing the TScript for the report form the local directory, first we default the parameter by executing the selected method via the basic method interface By defaulting the value we can execute the script without having to connect to the Texas Server each test run.
#include "PDFLibrary.ts"
public main(variable parameters) {
parameters = {"PeriodStart"=>D0,"PeriodFinish"=>D0,"TotalSales"=>0,
"ExportSales"=>0,"GSTFreeSales"=>0,"InputTaxSales"=>0,
"ExemptSales"=>0,"TaxableSales"=>0,"SalesAdjustments"=>0,
"TotalGSTSales"=>0,"GSTPayable"=>0,"CapitalPurchase"=>0,
"NonCapitalPurchase"=>0,"GSTCredits"=>0,"InputTaxPurchases"=>0,
"NonGSTPurchase"=>0,"PrivatePruchases"=>0,"ExemptPurchases"=>0,
"TotalGSTPurchases"=>0,"PurchasesAdjustments"=>0,"TotalGetCredits"=>0,
"BusinessName"=>"Ekky Software Pty. Ltd."};
}
From the command prompt, which is normally located at C:\Windows\System32\cmd.exe, we then can execute the TScript file by typing the following command:-
<Texas Client Directory>TScript.exe -l <Texas Client Directory>TScriptLibraries <print report name>.ts
Where the TScript executable should be in the Texas Global Client directory, the DPF library should be in the TScriptLibraries directory within the Texas Global Client directory and the print report file name in the current working direcotry. The output result should be saved by the name in the TScript file into the current working directory.
Copyright © 2008, Ekky Software Pty Ltd.