ScaleLeft, ScaleTop Properties

Applies To

Report.

Description

You can use the ScaleLeft and ScaleTop properties to specify the units for the horizontal and 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

  • The ScaleLeft property specifies a Single 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.
  • The ScaleTop property specifies a Single 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 by using a macro or a Visual Basic event procedure specified by a section's OnPrint property setting.

Remarks

By using these properties and the related ScaleHeight and ScaleWidth properties, you can set up a custom coordinate system with both positive and negative coordinates. All four of these 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 the ScaleHeight and ScaleWidth property settings to the new unit of measurement and sets the ScaleLeft and ScaleTop properties 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, Print method, PSet method, Scale method, ScaleHeight, ScaleWidth properties, ScaleMode property.