Microsoft KB Archive/271612

= FIX: Error &quot;Can't Print Form Image&quot; on Windows 98 with Visual Basic 6.0 SP4 =

Article ID: 271612

Article Last Modified on 1/16/2007

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Enterprise Edition Service Pack 4, when used with:
 * Microsoft Windows 98 Standard Edition

-



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:

http://msdn2.microsoft.com/en-us/vstudio/aa718363.aspx

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.</ol> </li> Use the PrintForm method at run time: <ol>  In the form that you want to print, add the following code: Private Sub Form_Click Me.PrintForm End Sub </li> Run your project and show the form.</li> Click the form to print it.</li></ol> </li></ul>

<div class="status_section">

STATUS
Microsoft 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:

http://msdn.microsoft.com/vstudio/previous/vs6/downloads/default.aspx

<div class="moreinformation_section">

MORE INFORMATION
This problem only occurs with Visual Basic in Visual Studio 6.0 SP4 on Windows 98.

Steps to Reproduce Behavior

 * 1) Create a new Standard EXE project in Visual Basic in Visual Studio 6.0 SP4 on Windows 98.
 * 2) On the File menu, select Print.
 * 3) In the Print What frame, clear the Code check box, and then select the Form Image check box.
 * 4) Click OK. You receive the above-mentioned error message.

Keywords: kbbug kbfix kbvbp600fix KB271612

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.