BUG: MSFLEXGRID Prints as Black Box after Installing Service Pack 3

ID: Q237816


The information in this article applies to:


SYMPTOMS

When you use the PrintForm method of the Form Object, and the Form contains an MSFLEXGRID control, the MSFLEXGRID control will print as a black box. This only occurs on NT. The control prints correctly on Windows 95 and Windows 98.


RESOLUTION

To work around this problem, use the Hierarchical FlexGrid control. It is listed as "Microsoft Hierarchical FlexGrid Control (SP3) (OLEDB)" in the components dialog window. Switching to this control should not require coding changes.


STATUS

Microsoft has confirmed this to be a problem in Visual Basic 6.0 running in Visual Studio 6.0 Service Pack 3 under Windows NT 4.0.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a new Standard EXE Project. Form1 is created by default.


  2. From the Project Menu, select Components. This will bring up the Components dialog box.


  3. From the Components dialog box, select Microsoft Flexgrid Control 6.0 (SP3). The name of the control is Msflexgrid.ocx. Click OK.


  4. This will add the icon for the Flexgrid control to your toolbox. Now, double-click the Flexgrid control icon in the toolbox to add it to Form1.


  5. In the General Declarations section of Form1, add the following code:


  6. 
    Private Sub Form_Load()
       Me.PrintForm
    End Sub 
  7. Make sure you have a default printer set up, then press the F5 key to run the project. On the printout you will see a solid black box where the Flexgrid should be.


Additional query words:


Keywords          : kbActiveX kbNTOS400 kbPrinting kbVBp kbVBp600 kbVS600sp3bug 
Version           : WINDOWS:6.0,6.0 SP3
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: August 12, 1999