FIX: ScaleMode for Printer Object Can't Create Custom Scale (166908)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q166908 SYMPTOMS
In Microsoft Visual Basic version 5.0, when you set the Printer object's
ScaleMode property to vbUser (0) to create a user-defined custom coordinate
system, the behavior of the Printer object does not change. While the value
of the ScaleMode property displays as zero (0), the Printer object behaves
as if the ScaleMode property has not changed from its previous value, which
is usually the default value of one (1).
RESOLUTION
To work around this problem, use the Scale method to create a user-defined
custom coordinate system instead of using the ScaleMode property. You can
specify a custom scale using the following syntax:
Printer.Scale (x1,y1) - (x2, y2)
where the values of x1 and y1 determine the settings of the ScaleLeft and
ScaleTop properties, and the differences between the two x-coordinates and
the two y-coordinates determine the settings of ScaleWidth and ScaleHeight,
respectively.
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 Studio
97 Service Pack 2.
For more information on the Visual Studio 97 Service Pack 2, please see the
following article in the Microsoft Knowledge Base:
170365
: INFO: Visual Studio 97 Service Packs - What, Where, and Why
For a list of the Visual Basic 5.0 bugs that were fixed in the Visual
Studio 97 Service Pack 2, please see the following article in the Microsoft
Knowledge Base:
171554
: INFO: Visual Basic 5.0 Fixes in Visual Studio 97 Service Pack 2
REFERENCES
"Visual Basic Programmer's Guide", version 5.0, Chapter 12
Modification Type: | Major | Last Reviewed: | 12/10/2003 |
---|
Keywords: | kbbug kbfix kbprint kbvbp500sp2fix kbVS97sp2fix KB166908 |
---|
|