Article ID: 183979 - Last Review: August 7, 2007 - Revision: 1.2

FIX: Visual Basic UserControls Within UserControls Do Not Print in Internet Explorer

This article was previously published under Q183979

On This Page

Expand all | Collapse all

SYMPTOMS

Visual Basic UserControls that are contained in Visual Basic UserControls will not print in the versions of Internet Explorer listed above.

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 the latest service pack for Visual Studio 6.0.

For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:
194022  (http://support.microsoft.com/kb/194022/EN-US/ ) INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295  (http://support.microsoft.com/kb/194295/EN-US/ ) 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://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx (http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx)

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create an ActiveX Control Project in Visual Basic.
  2. Place a Frame in UserControl1 and change the caption property of the Frame to "Control1."
  3. Add a second control (UserControl2) to the project. (This will be the inner control)
  4. Add a Label control to the upper-left hand corner of UserControl2 and change the Caption Property to "Control2."
  5. Put a "UserControl2" control inside the Frame created on the first control.
  6. Create an Internet Download setup with the Setup Wizard.
  7. From within Internet Explorer, navigate to Project1.htm that was created by the Setup Wizard. You should see UserControl1 with a UserControl2 on it. There will also be a UserControl2 beside UserControl1 because the Setup Wizard creates <OBJECT> tags for both controls in Project1.htm.
  8. From the Internet Explorer File menu, click Print.
The outer control will be printed, but the inner control (UserControl2) will not.

APPLIES TO
  • Microsoft Internet Explorer 3.01
  • Microsoft Internet Explorer 3.02
  • Microsoft Internet Explorer 4.0 128-Bit Edition
  • Microsoft Internet Explorer 4.01 Service Pack 2
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
Keywords: 
kbbug kbfix kbvs600sp4fix kbvs600sp5fix KB183979
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations

 

Related Support Centers