omron — Report

Appendix: Built-in Scripting Language Examples Report Executes the specified Report worksheet and sends the output to hard disk, printer, or PDF. Syntax Report( " strFunction " , optNumOrientation ) strFunction String specifying the operation to perform and the Report worksheet to output, using the syntax " Operation : Report worksheet " , where… Operation is either Disk (saves data file to hard disk), Prn (sends report to default printer), or Pdf (generates a PDF file of the report); and optNumOrientation Report worksheet is the name of the Report worksheet file ( *.rep ) to output. Set the paper orientation as follows: 0 (default) is Portrait, 1 is Landscape.

This parameter is ignored if the Operation is other than Prn . Note: Some features of this function are not supported when running the project on a Windows Embedded device: it cannot generate PDFs; it cannot change paper orientation using the optNumOrientation parameter; and it does not support Report worksheets in RTF format. Returned value InduSoft Web Studio Page 511 1 If the tag is numeric 2 Expression does not contain ":" 3 Previous command to the invalid ":" 4 Task not found by the system 5 Disk error Tag Name Expression Tag Recipe( "Save:Recipe1" ) Tag Recipe( "Load:Recipe5" ) Note: • You must be running the Background Task to execute the recipe functions.

• When this function is called on a Thin Client, the command is sent to the Server (via TCP/ IP) and the Recipe task on the Server executes the command. Therefore, be aware that tags configured with a Scope of Local rather Server will still be updated on the Server.

Function Group Execution Windows Embedded Thin Client Report Module Activity Synchronous Supported Supported Supported Value Description 0 Success 1 strFunction is configured with a numeric value (invalid) 2 strFunction does not contain ":" (invalid) 3 strFunction contains an invalid output type before the ":" 4 Background Task is not running (see Tip below) 5 Disk error (e.g., disk full, read-only file cannot be overwritten, or invalid path) 6 Specifed Report worksheet does not exist