FIX: Printer Error When Printing from RTF Control (142290)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q142290 SYMPTOMS
After printing from a Rich Text Box control, Visual Basic 4.0 raises error
482 - "Printer Error". This error can occur when exiting a Visual Basic
application or when executing the EndDoc method of the Printer object.
RESOLUTION
After printing from a RTF control, executing an EndDoc will exhibit this
problem. Visual Basic executes an automatic Printer.EndDoc if a program
stops execution with buffered data. Even though this error is raised, the
pages do print correctly. The workaround for this problem is to trap error
482 and simply ignore it. The example below contains code to demonstrate
this technique.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic 5.0.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbbug kbfix KB142290 |
---|
|