ScaleLeft, ScaleTop Properties

Applies To

Report.

Description

You can use the ScaleLeft and ScaleTop properties in Visual Basic to specify the horizontal or vertical coordinates that describe the location of the left and top edges of a page when the Circle, Line, PSet, or Print method is used while a report is previewed, printed, or its output is saved to a file.

Setting

  • ScaleLeft—A Single data type value used in a numeric expression to set the number of units for the horizontal coordinate of the left edge of a page. The default setting is 0.
  • ScaleTop—A Single data type value used in a numeric expression to set the number of units for the vertical coordinate of the top edge of a page. The default setting is 0.

You can set the ScaleLeft and ScaleTop properties only in a macro or a Visual Basic event procedure specified by a section’s OnPrint property setting.

Remarks

Using these properties and the related ScaleHeight and ScaleWidth properties, you can set up a full 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. Also, the CurrentX and CurrentY property settings change to reflect the new coordinates of the current point.

You can also use the Scale method to set the ScaleHeight, ScaleWidth, ScaleLeft, and ScaleTop properties in one statement.

Note The ScaleLeft and ScaleTop properties aren’t the same as the Left and Top properties.

See Also

Circle Method; Event Properties; Line Method; PrintOut Method; PSet Method; Scale Method; ScaleHeight, ScaleWidth Properties; ScaleMode Property.