config1.pngSetting SYSPRINTER Options


The Sysprinter configuration page is used to define print devices that are accessible through the Windows Print Manager. To print directly to a printer port, use the Printers configuration page.

  • To add a new Sysprinter device, click Add.

  • To remove an existing Sysprinter device, click anywhere in the column, then click Remove.

  • Row

    Description

    Alias name

    Enter an alias name for the printer. The alias name must begin with an L or a P in order for Visual PRO/5 to recognize the device as a printer. The minimum length of the alias name is 2 characters.

    Description

    Enter the description for the printer. This text is not used by Visual PRO/5 but may be accessed by an application program via the TSK() function.

    Columns

    Enter the number of columns for the printer.

    Conditional expr

    Enter a conditional expression for the printer in the form T?. It allows this device to be accessible only by Visual PRO/5 processes with a FID(0)=T?.

    CP columns

    Enter the number of columns that the printer can print when in compressed print mode. The maximum is 255.

    CP lines

    Enter the number of lines per page that the printer can print when in compressed print mode.

    Dialog/Setup

    Click the Options button to display the dialog for defining the Dialog/Setup options.

    • No initial dialog - Accesses the default printer (as selected from Control Panel) when this printer is selected.

    • Dialog - Displays the Windows Print dialog when this printer is selected. Execution of the Visual PRO/5 program is paused until a printer and page setup are selected and confirmed.

    • Setup - Displays the Windows Print Setup dialog when this printer is selected. Execution of the Visual PRO/5 program is paused until a printer and page setup are selected and confirmed.

    End of line

    Click the Options button to display the dialog for defining the end of line settings and select one of the following:

    • Default EOL Handling - An attempt to print a line that is longer than the defined width of the printer will generate an ERROR=1 at runtime. To recover from this error, you must reset the print buffer by issuing the command: PRINT (prtr)"".

    • Error - Similar to the EOL handling behavior, but there is no need to reset the print buffer to recover from this error. The next line printed after receiving the ERROR=1 will overprint the line that caused the error.

    • Wrap - Causes the text to wrap to the next line.

    • Truncate - Causes the text to be truncated at the defined width of the printer.

    Font name

    Enter the font name for the printer. If no font is selected, then Visual PRO/5 will use the best available device font based on the desired ROW and COLUMN selection.

    Job ID

    Enter the job ID name for the print jobs in the Print Manager's queue. The default is "Visual PRO/5 Document."

    Lock file

    Enter the name of the lock file to be created whenever this printer device is opened by Visual PRO/5. This file prevents more than one process from opening the device.

    Persist through begin

    Checking the box sets the persist flag for the printer, which causes the device to remain open on a BEGIN.

    Preview

    Checking the box sets the preview flag for the printer, which causes the device to be opened as a preview to the screen.

    Rows

    Enter the number of rows for the printer.

    SP columns

    Enter the number of columns that the printer can print when in standard print mode. The maximum is 255.

    SP lines

    Enter the number of lines per page that the printer can print when in standard print mode. The maximum is 255.