FIX: Printer.Print Statements Unable to Print w/ Postscript (113593)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 1.0
- Microsoft Visual Basic Standard Edition for Windows 2.0
This article was previously published under Q113593 SYMPTOMS
Nothing prints on the paper when you try to print a string to the printer
using the printer.print statement. Nothing prints when code processing
reaches the printer.enddoc statement or the end of the program.
CAUSE
The following two Postscript printer drivers were tested and found to
have a problem with Microsoft Visual Basic versions 1.0 and 2.0 for
Windows. The drivers with the problem are: - PSCRIPT.DRV 318112 bytes dated 10-01-92
- PSCRIPT.DRV 313520 bytes dated 3-02-92
The problem is that nothing prints on the paper. The Printer.Print
statement(s) may be ignored entirely when you are using either of
the two drivers listed above.
WORKAROUND
Add two statements prior to the Printer.Print statement(s) to correct
the problem. You need to set the Printer.CurrentX and Printer.CurrentY
properties to positive values. Then add the Printer.Print statement
and you should see the desired string printed on the printer's page.
STATUS
Microsoft has confirmed this to be a bug in the products listed at the
beginning of this article. This problem did not occur in Visual Basic
version 3.0.
Modification Type: | Major | Last Reviewed: | 10/29/2003 |
---|
Keywords: | kbbug kbfix KB113593 |
---|
|