Using Print Preview

Starting the Print Preview

To start the Print Preview program, add MODE="PREVIEW" to the OPEN of a SYSPRINT device. (This does not affect the operation of other MODE statements with the exception of TEXT.) For example:

OPEN (1,MODE="PREVIEW")"LP"

The following identifies each Print Preview program operation and its corresponding menu and toolbar commands:

To

Menu Command

Toolbar Command

Shortcut

Send a report to the printer and change printer configuration.

File

Print

Print

Ctrl+P

Close the print preview.

File

Exit

N/A

N/A

Display the first page.

Page

First Page

First

Ctrl+Home

Display the last page.

Page

Last Page

Last

Ctrl+End

Display the previous page.

Page

Previous Page

Previous

Ctrl+Page Up

Display the next page.

Page

Next Page

Next

Ctrl+Page Down

Display a specific page.

Page

Goto Page

N/A

Ctrl+G

View toolbar.

View

Toolbar

N/A

N/A

View status bar.

View

Status Bar

N/A

N/A

Display two pages side-by-side.

View

Fit Two Pages

Two Page

Ctrl+T

Scale the page to fit the window's width.

View

Fit to Width

Page Width

Ctrl+W

Scale the page to fit the window's height.

View

Fit to Height

Page Length

Ctrl+H

*Scale to 200%

View

200%

*Combo Box

N/A

*Scale to 150%

View

150%

*

N/A

*Scale to 100%

View

100%

*

Ctrl+1

*Scale to 75%

View

75%

*

N/A

*Scale to 50%

View

50%

*

N/A

*Scale to 25%

View

25%

*

N/A

Display print boundaries.

View

View Unprintable Region

N/A

N/A

Display copyright information.

Help

About Print Preview

N/A

N/A

*Also shown in View Combo Box on the toolbar.

Print Preview is a rendering of a report, rather than the actual report itself. Therefore, it is not possible to cut, copy, or paste from the Print Preview window.

NOTE:

There is a known issue with the PRINT button on the tool bar in VPRO/5 Print Preview. If it does not print, (1) click on a file, then (2) select the print option. This requires multiple clicks, but it will print if these steps are followed.

The issue occurs because Microsoft has a character printer name limit.  Any printer name longer than 30 characters cause this problem.  The work around is to rename the default printer using less than 30 characters.

Canceling Print Preview

If Print Preview is cancelled using the window's Close button, Visual PRO/5 returns an !ERROR=2 to the application on the next write to the print device. By sending the 'CANCEL' mnemonic to the print channel, the application can be set to cancel Print Preview. Issuing the 'ENDSPOOL' mnemonic will close the index and preview files, stop monitoring the preview process, and create a new preview process with a different set of index and preview files.

Modifying Company Name Information

The company name listed in the Help menu's About command can be modified by inserting company=Companyname into the [Print Preview] section of the pro5.ini file and replacing Companyname with the company information. Note: The pro5.ini file is used in VPRO/5 1.x. The registry (HKCU/Software/BASIS and subkeys) is used for VPRO/5 2.x and above.

See Also

SYSPRINT Printing

Printing Functionality and Performance

Print Preview - GUI

Printing in BBj