This is how printing is handled by the library
functions. You need not follow this method except where it is
imbedded in SuperLib metafunctions.
The function SLS_PRN() is a SET/RETRIEVE function
which sets and retrieves the default printer port as a string
with the default as "LPT1". This function may be called with any
valid printer port name as a parameter to set a new printer port
for SuperLib usage.
Valid values are "LPT1", "LPT2", "LPT3", "COM1",
"COM2" - anything you could issue a SET PRINTER TO
Another SET/RETRIEVE function - SLS_PRNC() - points
to the setting which determines if the printer port will be
checked for readiness before printing. Passing it a False causes
it to not check the printer before printing - handy in some
At print time, LPT* ports are checked for readiness
via the P_READY() function. (COM ports are not checked for
readiness.) However, if SLS_PRNC() has been passed a .f., no
check for readiness is done.
P_READY() uses the .ASM function ISPRN() to check for
If the port is not ready, the user is given
the option to: Try Again
Ignore the Warning
Select a Different Printer Port
Abort the print request
If Abort is selected, P_READY() returns false.
SLS_PRNC() A Superlib printer setting function
<lSetting> => Current value of the setting
Function Setting Default
SLS_PRNC([lNew]) Check printer ready .T.
(set to .f. on
[lNew] sets the setting to a new setting
If [lNew] is passed, the setting is changed and the
new setting is returned.
SLS_PRNC(.f.) // DO NOT DO A HARDWARE PRINTER READY CHECK
P_READY() Determines if printer is ready, prompts user
<lReady> => True if printer is ready
Checks for printer ready, and prompts user to ready
the printer until it is ready, or until user presses escape to
P_READY() first looks at SLS_PRNC(), and if the
value is .f., does no printer check and returns .t.
[cPort] - LPT1 LPT2 LPT3
Default is LPT1
REPORT FORM yayaya TO PRINT
To stop P_READY() from checking the printer port (as
it is imbedded in many SuperLib functions), call SLS_PRNC() with
False. This turns printer checking off. (i.e. on a network)
See also : P_RDYDELAY(), P_READY(), SLS_PRNC()