Sorting and bundling scripts > Generating statistics reports

Generating statistics reports
You can retrieve and report information about documents to be post-processed. The information can be written to a separate file or a repository. You must use scripting to retrieve and report the information. For example, you can use the following script functions to retrieve statistics information:
Note:
The GetDocSheetCount function can only be used if you have specified a mailing machine. See Defining mailing machines.
To write or store the retrieved information you can, for example, use the following script functions:
Note:
Example 2
$mailmachine = "Sheets to mailingmachine" + "<20>" + GetMailMachine() + "<3a><20>";
$pagecount = ConnectorPageActual(); 
fileopen("Statistics\pagecount.txt","a");
filewrite("Statistics\pagecount.txt",$mailmachine + $pagecount  + "<0d><0a>" + "<0d><0a>");
 
This can result in the following rows in the statistics file:
Sheets to mailingmachine Invoice: 24
Sheets to mailingmachine Overflow: 16
 
 
OpenText StreamServe 5.6 Updated: 2013-03-01