Microsoft KB Archive/181877

= FIX: UserControl Not Printing Correctly From Access =

Article ID: 181877

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Control Creation Edition
 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Access 95 Standard Edition
 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q181877



SYMPTOMS
A UserControl (OCX) created in Visual Basic does not print correctly from Microsoft Access. The control is either partially cut off or is blank when previewed or printed.



CAUSE
This problem occurs when version 05.00.4319 of the Visual Basic run-time File MSVBVM50.DLL is installed. This version is installed by Visual Studio Service Pack 2 and 3 and Microsoft Internet Explorer 4.0.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Basic 6.0.



Steps to Reproduce Behavior
 Create a new ActiveX Control project. UserControl1 is created by default. Click Project1 Properties from the Project menu and set the Project Name to "AccessTest." Using the Shape control, draw a rectangle on the UserControl.  Set the following Shape1 control properties:   Property     Value -  BackColor    &H000000FF& (Red) BackStyle   Opaque Height      2295 Left        480 Top         600 Width       3855  Save the project and make AccessTest.ocx. Exit Visual Basic.</li> Start Microsoft Access and create a blank database (db1.mdb).</li> Click the Forms tab, and then click the New button to create a new form.</li> Click OK to create new form in Design View.</li> Choose Insert, ActiveX Control and insert the AccessTest.UserControl1.</li> Choose Print Preview from the File menu. Note that the rectangle is partially cut off.</li> Click the Close button on the Toolbar to return to Form design.</li> Move the control to the right so that it is centered on the form and then return to print preview. Note the problem is more apparent and that the control may appear as an empty box.</li></ol>

Additional query words: white box kbIE400 kbVs97 kbVS97sp2 kbVS97sp3 kbVBp kbdsd kbDSupport kbVBp500bug

Keywords: kbbug kbfix KB181877

-

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

© Microsoft Corporation. All rights reserved.