Report.
You can use the ScaleMode property in Visual Basic to specify the unit of measurement for coordinates on a page when the Circle, Line, PSet, or Print method is used while a report is previewed or printed.
The ScaleMode property uses the following settings.
|
Setting |
Description |
|
0 |
Indicates that one or more of the ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties are set to custom values |
|
1 |
(Default) Twip |
|
2 |
Point |
|
3 |
Pixel |
|
4 |
Character (horizontal = 120 twips per unit; vertical = 240 twips per unit) |
|
5 |
Inch |
|
6 |
Millimeter |
|
7 |
Centimeter |
The property setting has an Integer data type value.
You can set the ScaleMode property only in a macro or a Visual Basic event procedure specified by a section’s OnPrint property setting.
Using the related ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties, you can create a custom coordinate system with both positive and negative coordinates. These four Scale properties interact with the ScaleMode property in the following ways:
Circle Method; CurrentX, CurrentY Properties; Event Properties; Line Method; PrintOut Method; PSet Method; Scale Method; ScaleHeight, ScaleWidth Properties; ScaleLeft, ScaleTop Properties.