Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Appendix E: Run_Report Reference

Example

 

Code Block
Declare Subroutine Run_report
 
* Run an existing report
rptName = 'MY_REPORT'
Run_Report(rptName,'')
 
* A simple list statement
stmt = "LIST BOOKS TITLE AUTHOR BY-DSND AUTHOR"
Run_Report('',stmt)
 
* A simple list statement creating a PDF file
stmt = "LIST BOOKS TITLE AUTHOR BY-DSND AUTHOR"
Run_Report('',stmt,'PDFFILE C:\TEMP\MY_PDFILE.PDF')
 
* Run an existing report to the printer with landscape orientation
rptName = 'MY_REPORT'
Run_Report(rptname,'','(P LANDSCAPE')
 

...

* Run an existing report using a previously executed select.
 
stmt = "SELECT BOOKS WITH AUTHOR [] 'CLANCY'"
RList( stmt, 5, "", "", "" )
error = Get_Status( errCodes )
if error then
   

...

Fsmsg( errCodes )
end else

...

   

...

Run_Report( "MY_REPORT", "", ""  

...

)
end