BUG: Some Controls Not Printed with PrintForm in Windows 3.1

ID: Q84471


The information in this article applies to:
  • Microsoft Visual Basic programming system for Windows, version 1.0


SYMPTOMS

In Windows version 3.1, if you print a Visual Basic form to a printer by either selecting Print from the File menu during design time or by using the PrintForm method during run time, some of the controls on the form may not be not be printed (such as the frame, command button, option button, or check box). This problem is known to occur when using Windows 3.0 video drivers with Windows version 3.1. The problem is also known to occur with third-party video drivers that claim to be Windows version 3.1 compatible. The problem does not occur when you run Visual Basic with Windows version 3.0.


WORKAROUND

To overcome this problem, delete the old video driver and install the new Windows version 3.1 compatible driver. This can be done through Windows Setup (see your Windows version 3.1 manual for details).


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

This problem may result when you install Windows version 3.1, because some of the Windows version 3.0 video drivers may not be updated.

Steps to Reproduce Problem

To reproduce the problem, do the following (using a Windows version 3.0 video driver with Windows version 3.1):

  1. Start Visual Basic, or from the File menu, choose New Project (ALT, F, N) if Visual Basic is already running. Form1 is created by default.


  2. Add controls to Form1 such as frame, command button, check box, and option button.


  3. From the File Menu, choose Print.


  4. In the Print dialog box, select Current and Form.


  5. Choose the OK button to start printing.


  6. Note that the frame, command button, and option button are not printed.


  7. Add the following code to the Form1 Click event:
    
           Form1.PrintForm 


  8. Press F5 to run the program.


  9. Click in the form.


  10. Note that the frame, command button, and the check box are not printed.


To overcome this problem, delete the old video driver and install the new Windows 3.1 compatible driver. You can do this through Windows Setup (see your Windows 3.1 manual for details).

Additional query words: buglist1.00

Keywords :
Version :
Platform :
Issue type :


Last Reviewed: August 25, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.