Microsoft KB Archive/176634

= BUG: Line and Circle Methods Do Not Print as Transparent on Win95/98/Me =

Article ID: 176634

Article Last Modified on 9/27/2004

-

APPLIES TO

 Microsoft Visual Basic 5.0 Learning Edition, when used with:  Microsoft Windows 95

 Microsoft Windows 98 Standard Edition

 Microsoft Windows Millennium Edition  Microsoft Visual Basic 6.0 Learning Edition, when used with:  Microsoft Windows 95</li></ul>

 Microsoft Windows 98 Standard Edition</li></ul>

 Microsoft Windows Millennium Edition</li></ul> </li> Microsoft Visual Basic 4.0 Standard Edition, when used with:  Microsoft Windows 95</li></ul>

 Microsoft Windows 98 Standard Edition</li></ul>

 Microsoft Windows Millennium Edition</li></ul> </li> Microsoft Visual Basic 4.0 Professional Edition, when used with:  Microsoft Windows 95</li></ul>

<ul> <li>Microsoft Windows 98 Standard Edition</li></ul>

<ul> <li>Microsoft Windows Millennium Edition</li></ul> </li> <li>Microsoft Visual Basic 5.0 Professional Edition, when used with: <ul> <li>Microsoft Windows 95</li></ul>

<ul> <li>Microsoft Windows 98 Standard Edition</li></ul>

<ul> <li>Microsoft Windows Millennium Edition</li></ul> </li> <li>Microsoft Visual Basic 6.0 Professional Edition, when used with: <ul> <li>Microsoft Windows 95</li></ul>

<ul> <li>Microsoft Windows 98 Standard Edition</li></ul>

<ul> <li>Microsoft Windows Millennium Edition</li></ul> </li> <li>Microsoft Visual Basic 4.0 Enterprise Edition, when used with: <ul> <li>Microsoft Windows 95</li></ul>

<ul> <li>Microsoft Windows 98 Standard Edition</li></ul>

<ul> <li>Microsoft Windows Millennium Edition</li></ul> </li> <li>Microsoft Visual Basic 5.0 Enterprise Edition, when used with: <ul> <li>Microsoft Windows 95</li></ul>

<ul> <li>Microsoft Windows 98 Standard Edition</li></ul>

<ul> <li>Microsoft Windows Millennium Edition</li></ul> </li> <li>Microsoft Visual Basic 6.0 Enterprise Edition, when used with: <ul> <li>Microsoft Windows 95</li></ul>

<ul> <li>Microsoft Windows 98 Standard Edition</li></ul>

<ul> <li>Microsoft Windows Millennium Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q176634

<div class="symptoms_section">

SYMPTOMS
When you use the Circle method to print circles or the Line method to print rectangles, the circles do not print as transparent so that overlapped portions of the shapes appear. The problem occurs even when the FillStyle property of the Printer object is set to Transparent (1).

<div class="cause_section">

CAUSE
This problem occurs when using the Line or Circle methods on Windows 95, Windows 98, or Windows Me.

<div class="resolution_section">

RESOLUTION
To work around this problem, toggle the FillStyle property of the Printer object prior to using the Line or Circle method to print as transparent graphical objects: Printer.FillStyle = 2 Printer.Print "" Printer.FillStyle = 1

<div class="status_section">

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

<div class="moreinformation_section">

Steps to Reproduce Behavior
<ol> <li>Start a new project. Form1 is created by default.</li> <li>Add a CommandButton to Form1.</li> <li> Add the following code to the Click event of Command1: 'Print concentric circles Dim i as Integer For i=100 to 1000 Step 100 Printer.Circle (1000,1000), i     Next

'Print 10 rectangles For i=100 to 1000 Step 100 Printer.Line (5000, 1000) - (5000 + i, 1000 + i),, B     Next

Printer.Enddoc </li> <li>Press the F5 key to run the project. Click Command1 to print. In the output, note that only the outer circle appears instead of ten concentric circles as you would expect.</li> <li> To apply the workaround, add the following code to the Form_Load event of Form1: Printer.FillStyle = 2 Printer.Print " " Printer.FillStyle = 1 </li></ol>

Additional query words: solid fill clear

Keywords: kbbug kbprint kbpending KB176634

-

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

© Microsoft Corporation. All rights reserved.