Other Printing @RPTOPT Options

@RPTOPT system variable supports several printing options:

  • Report Autosize (A1) – Report Autosize only works for Win32 kernels because Windows is the only platform where PROIV directly accesses a page orientated, pixel addressable spool mechanism. Currently, the Autosize options are only supported if printed is performed using the kernel (not the PROIV Windows Client). You must also used the standard spooler interface (Spool = Y, Queue = Y)–– not the Direct Print options.

    S = Adjust the line spacing to fill the page
    L = Adjust the number of line per page.

    These values affect only the page length; the page width is unchanged.

  • Dynamic Page Length (N2) – Specifies the page length to override the size set in LR characteristics. This option works for all kernels.

  • Dynamic Page Width (N3) Specifies the page width to override the size set in LR characteristics. This option works for all kernels. 

@RPTOPT only supports the above three options if they are defined in Free Form format. They are specified at the end of the current options (after the 8 Y/N flags), in the order listed above.

For example, if the following is specified in the Function-In logic of a report: 

@RPTOPT = "1,LP3,,2,,,,,Y,Y,,,S,66,132"

The report is sent to the spooled printer (device type "1") defined in the kernel mapping table entry for LP3. Two copies are output; suppress standard first line (1st "Y"); suppress page eject at start of report (2nd "Y"); lines are spaced to fit to page ("S"), and the report is sized to 66 lines per page, 132 columns per line.

@RPTOPT also supports the sending of raw XML to the screen.

For example:

@RPTOPT = '5,CRT:OUTFMT=X'  

where 5 is the device type, CRT:OUTFMT= X sets the screen output of type XML.

Comment on this topic

Topic ID: 730085

 
 
 

Table of Contents

Index

Glossary

-Search-

Back