Microsoft KB Archive/183979

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

Article ID: 183979

Article Last Modified on 8/7/2007

-

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

-



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:

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



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

Additional query words: UserControl sp4 Active Document Server docobj

Keywords: kbbug kbfix kbvs600sp4fix kbvs600sp5fix KB183979

-

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

© Microsoft Corporation. All rights reserved.