Printing Reports with OR_VIEW (Functions/Subroutines/Programs,General,Reporting and Printing)

The function OR_VIEW is used by the Report Builder, but can be used independently

in Event Context only. OR_VIEW has the following syntax.

 

Syntax:

OR_VIEW( ReportName, RLScript, userarg )

 

There are two different modes of operation for the OR_VIEW function. Pre-made reports can be viewed by passing the report s name as the first parameter and null as the second parameter. The second option is to pass null as the first parameter and an OpenList statement as the second parameter, the results of which will constitute the report s contents.

 

Once the report is displayed, you will have the ability to print a hardcopy of the report or export the report to a DOS file.  Please note that the size of the report is not limited to 64K.

 

Examples:

 

1) Passing a report name.

 

report =  TEST 

retval = OR_VIEW(report,   )

 

 

2) Passing an OpenList statement.

 

list =  LIST TABLE WITH ID >  419  HEADING  Here s a nice Header.   

retval = OR_VIEW(  , list)

  • kb/kb_articles/kb0176.txt
  • Last modified: 2024/01/30 13:36
  • by 127.0.0.1