PRB: SET DEVICE TO PRINTER PROMPT Does Not Open Dialog Box (98746)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
This article was previously published under Q98746 SYMPTOMS
Issuing the SET PRINTER ON PROMPT or SET DEVICE TO PRINTER PROMPT
command immediately after issuing the same command does not produce
the expected Microsoft Windows Print dialog box.
CAUSE
Once the printer has been defined, FoxPro does not display the Print
dialog box again until the printer is once again in an undefined
state. For example, this problem will occur if the previous print job
has not yet been released by Print Manager or the network spooler.
RESOLUTION
To work around this problem, do one of the following:
- Add the command SET PRINTER TO to the end of your program so the
print job will be released each time the program is run and
consequently, the Print dialog box will appear every time.
-or-
- Use the following code sequence after the print job is completed:
SET PRINTER OFF && disables output to the printer.
SET PRINTER TO && resets output to default MS-DOS PRN print
&& utility
NOTE: The SET PRINTER TO command causes a page to be ejected from
the printer. A workaround to this behavior is not known at this
time.
STATUS
This behavior is by design.
REFERENCES
"Language Reference," version 2.5, page L3-973
Modification Type: | Major | Last Reviewed: | 10/25/2001 |
---|
Keywords: | KB98746 |
---|
|