PRINT Preview Example


Example:

 

P

PFILE

 

*

 

 

.Specify Print Preview

.

 

 

  

PRTOPEN

P,"@",""

*

 

 

.Output Sample Info

.

 

 

  

PRTPAGE

P;"Page 1 data",*F,"Page 2 data"

*

 

 

.Close the Printer

.

 

 

  

PRTCLOSE

P

  

STOP

 

 

This example requests a print preview by specifying a print device name of "@". The program then outputs one line on each of two pages. Upon execution of the PRTCLOSE instruction, the Print Preview window will appear. If the user clicks the Print button within the preview window, the output is sent to the default Windows printer.

 



PL/B Language Reference PRINT Examples PROCEDURE Example