SET_RPTOPT |
DEVELOPER |
|
|
||||||||||||||||||||||||||||||
Purpose |
SET_RPTOPT sets the current report device name and device type for subsequent report output. It also supports the transformation of XML reports with an XSL transform and the rendering of the documents on a PROIV Client workstation. |
||||||||||||||||||||||||||||||
Syntax |
SET_RPTOPT (operand1,operand2,operand3,operand4) |
||||||||||||||||||||||||||||||
Operation |
operand1 is any valid alphanumeric constant, variable or expression up to 40 characters in length that specifies the device/file name for reports. Note that this parameter should not contain a drive letter when used Microsoft Windows as this affects how the string is read. This limitation affects all Output Types, in particular those that use file names (8,11,13). See the Example section for more information. Valid values for the device type are:
OUTFMT: output format - takes the following options: The following options only apply to the XML transform and consequently follow the X value: operand3 holds the name of the XSL file if you want to transform an XML report. The XSL files must be stored on the server in the directory specified by the Environment Variable PROIV_XSL (or in the default /xsl directory) if they are to be found at runtime. The PROIV_XSL Environment Variable is set in the pro4v[n].ini file. When you are not using an XML transform, operand3 is mandatory, but must be "", and operand4 should not exist. operand4 holds the name of the physical file which is output to the PROIV Client. For example, entering myreport.pdf will send the report to a physical file called myreport.pdf and open it with the application associated with .pdf extension. |
||||||||||||||||||||||||||||||
Remarks |
The report device type and name set by SET_RPTOPT override those set by $SPOOL for a function and are, in turn, overridden by the current contents of the @RPTOPT system variable. |
||||||||||||||||||||||||||||||
Example |
SET_RPTOPT ("printfile","8","") sends report output to the file called 'printfile' to a physical device mapped to 8.
SET_RPTOPT with Client-Side PDF printing example: SET_RPTOPT("CRT:OUTFMT=XEIZ", "11", "demo.xsl", "demo.pdf")
SET_RPTOPT with Server-Side XML Transform example: SET_RPTOPT("filename.pdf:OUTFMT=XEIZ", "13", "demo.xsl")
SET_RPTOPT with delimited file example: SET_RPTOPT('file.csv:OUTFMT=D"\t"','8','')
|
Topic ID: 520117