PRB: Printing @ ... SAYs is Slow in FoxPro/DOS Under Win95ID: Q164743
|
Printing @ ... SAYs from FoxPro for MS-DOS to some network printers under Windows 95 on a Windows NT network is slow. The output comes out of other printers much more quickly.
The printers that are slow to release the print jobs are captured on the LPT2 or LPT3 ports.
Capture the printers on LPT ports other than LPT2 and LPT3.
To change the port that the printer is captured under, follow these steps:
Because printing is very complex and the printer, network and
configuration of the computer can have a major influence on it, the scope
of this article is very narrow. However, if the scenario described herein
applies, the resolution should solve the problem.
The resolution should work if you are running FoxPro for MS-DOS in a DOS
window under Windows 95. The network should either be a Windows NT or
Windows 95 network. The printers should be shared via the network.
In order to print from MS-DOS based programs, printers in Windows 95 need
to be captured. The Add Printer Wizard in Windows 95 asks this question
when setting up an new printer.
Printing reports in FoxPro for MS-DOS exhibits similar behavior as the @
SAY commands. However, without issuing the SET PRINTER TO command after
the REPORT FORM command, the report will still come out slowly. By issuing
SET PRINTER TO immediately after the REPORT FORM command, it allow the
report to start printing immediately if the printer is captured on any LPT
port except LPT2 or LPT3. Some sample code follows:
SET PRINTER TO LPT1
REPORT FORM <whatever> TO PRINT
SET PRINTER TO
SET PRINTER TO
SET DEVICE TO PRINTER
SET PRINTER TO LPT1
@ 1,1 SAY "Hello"
@ 2,1 SAY "Goodbye"
SET PRINTER TO && The print job should start printing now.
SET DEVICE TO SCREEN
Note that as soon as the second SET PRINTER TO command is issued when
the printer is captured on LPT1, the print job starts printing
immediately.
Microsoft "Windows 95 Resource Kit," pages 393-394, 602, 781
Additional query words: @..SAYs
Keywords : kbprint FoxDos FxprintGeneral FxprintNet
Version : MS-DOS:2.6a
Platform : MS-DOS
Issue type : kbprb
Last Reviewed: March 7, 1999