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



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 3.01
  • Microsoft Internet Explorer (Programming) 3.02
  • Microsoft Internet Explorer (Programming) 4.0
  • Microsoft Internet Explorer (Programming) 4.01
  • Microsoft Visual Basic Professional Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 5.0

This article was previously published under Q183979

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

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.

Modification Type:MinorLast Reviewed:12/12/2005
Keywords:kbbug kbfix kbVS600sp4fix kbVS600sp5fix KB183979