FIX: Graph Custom Control Incompatible w/ HP II Series PrinterLast reviewed: October 30, 1997Article ID: Q80912 |
1.00 2.00
WINDOWS
kbprg kbbuglist
The information in this article applies to: - Professional Edition of Microsoft Visual Basic for Windows, version 2.0 - Microsoft Professional Toolkit for Microsoft Visual Basic programming system for Windows, version 1.0
SYMPTOMSThe Visual Basic Graph custom control cannot successfully print directly to a Hewlett-Packard (HP) II series LaserJet. This is a compatibility issue between the Graph custom control and the HP II series only. It is not a problem with Visual Basic.
WORKAROUNDTo work around the problem, add an additional form to the project, transfer the graph's image to the form, and then print the form. This method bypasses the DrawMode=5 (print) method and the incompatibility issue. The example in the More Information section demonstrates how how to implement this workaround. Note: Unless you know that your graph will never be printed on an HP II Series LaserJet, you may wish to always use this print method.
STATUSMicrosoft has confirmed this to be a bug in the Graph custom control supplied with the products listed above. This bug was corrected in Microsoft Visual Basic version 3.0 for Windows.
MORE INFORMATIONThe Visual Basic Graph custom control version 1.2 allows you to send a graph image directly to your printer by setting the graph's DrawMode property to 5 (print). However, the Graph control is incompatible with the HP II LaserJet family. When using the DrawMode=5 (print) method to print to an HP II LaserJet, only a portion of the graph will print.
Step-by-Step Example1. Start a new project in Visual Basic. Form1 is created by default.
If you included the optional line Form2.visible=1, you will see Form2 appear and resize with the black and white graph image as its picture. A dialog box will appear stating that Form2 is being printed. Graph1 will convert back to a color display and the program will end.
|
Additional reference words: buglist1.00 buglist2.00 fixlist3.00 1.00 2.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |