Executes the specified Report worksheet and sends the output to hard disk, printer, or PDF.
Function | Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|---|
Report | Module Activity | Synchronous | Supported | Supported | Supported |
Report( "strFunction" , optNumOrientation )
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
Report worksheet is the name of the Report worksheet file ( *.rep ) to output.
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 |
Tag Name | Expression |
---|---|
Report( "Disk:Report1.rep" ) | |
Report( "Prn:Report2.rep", 0 ) | |
Report( "Prn:Report3.rep", 1 ) | |
Report( "Pdf:Report1.rep" ) |