Programming Guide |
Invokes the report generator from a user-written function
#include <rwdefs.h>int sm_rw_runreport(char *invocation_str);
invocation_str
- A string that contains the name of the report to be invoked, arguments passed to the report, and output and page layout options. The format of the string is identical to the invocation string for the JPL command
runreport
:"filename
[!
reportname
] [ (
'arg
'[, ... ] )] [
option
]..."
For a description of invocation arguments and options, refer to "Setting Invocation Options" in Reports.
- 0 Success.
sm_rw_runreport
invokes the report generator from a user-written function that is linked into a Panther application. This function is functionally identical to the JPL command runreport.
#include <rwdefs.h>
if (sm_rw_runreport("rptfile!myreport
('myarg1', 'myarg2') output=myoutput") == -1)
{
sm_n_putfield("myrwstatus", "failure");
}