ScaleMode Property

Applies To

Report.

Description

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.

Setting

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.

Remarks

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:

  • Setting any other Scale property to any value automatically sets the ScaleMode property to 0.
  • Setting the ScaleMode property to a number greater than 0 changes ScaleHeight and ScaleWidth to the new unit of measurement and sets ScaleLeft and ScaleTop to 0. The CurrentX and CurrentY property settings change to reflect the new coordinates of the current point.

See Also

Circle Method; CurrentX, CurrentY Properties; Event Properties; Line Method; PrintOut Method; PSet Method; Scale Method; ScaleHeight, ScaleWidth Properties; ScaleLeft, ScaleTop Properties.