Running, Saving, and Printing

You can run an Production Reporting program that already resides on the server, or you can upload it and then execute it.

To run an Production Reporting program that already resides on the server, use RemoteExec (Method) or RemoteExecNoWait (Method) with a command line that is valid on the server. The following is valid for UNIX:

Sqr0cx.RemoteExec("sqr /usr/tutorial/ex14.sqr tutorial/secret")

To save or print the Production Reporting output to a specific location on the server, use the RemoteExec (or RemoteExecNoWait) method with an appropriate command. For example:

Sqr0cx.RemoteExec("cp /usr/tutorial/ex14.spf
/archive/rpts/ex14.spf")
Sqr0cx.RemoteExec("lp /usr/tutorial/ex14.spf")

You can spool the output file on the server. All referenced image files must already reside on the server to properly embed graphics in your output file. (See File References in an Production Reporting Program )