FIX: Error "Can't Print Form Image" on Windows 98 with Visual Basic 6.0 SP4 (271612)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP4, when used with:
- the operating system: Microsoft Windows 98
This article was previously published under Q271612 SYMPTOMS
When you attempt to print a form as a graphical image from Visual Basic in the Microsoft Visual Studio 6.0 Service Pack 4 (SP4) integrated development environment (IDE) on Windows 98, you may receive the following error message:
Can't print form image to this type of printer.
RESOLUTION
To resolve this problem, install the latest Visual Studio 6.0 service pack. You can download Visual Studio 6.0 Service Pack 5 from the following Microsoft Web site:
WORKAROUND
There are two potential workarounds for this problem, both of which print the form as it appears at run time. - Use another application, such as Paint, to print the graphical image of the form:
- Run your project and show the form that you want to print.
- Press the ALT+PRINT SCREEN key combination.
- Start Paint.
- Paste the captured image into Paint.
- Print the image from Paint.
- Use the PrintForm method at run time:
- In the form that you want to print, add the following code:
Private Sub Form_Click()
Me.PrintForm
End Sub
- Run your project and show the form.
- Click the form to print it.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Basic 6.0 Service Pack 5. For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed To download the latest Visual Studio service pack, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/25/2004 |
---|
Keywords: | kbBug kbfix kbVBp600fix KB271612 |
---|
|