CurrentX, CurrentY Properties

Applies To   Report.

Description

You can use the CurrentX and CurrentY properties to specify the horizontal and vertical coordinates for the starting position of the next printing and drawing method on a report. For example, you can use these properties to determine where the center point of a circle is drawn on a report section.

Setting

The coordinates are measured from the upper-left corner of the report section that contains the reference to the CurrentX or CurrentY property. The CurrentX property setting is 0 at the section's left edge, and the CurrentY property setting is 0 at its top edge.

You can set the CurrentX and CurrentY properties by using a macro or a Visual Basic event procedure specified by the OnPrint property setting of a report section.

Remarks

Use the ScaleMode property to define the unit of measure, such as points, pixels, characters, inches, millimeters, or centimeters, that the coordinates will be based on.

When you use the following graphics methods, the CurrentX and CurrentY property settings are changed as indicated.

Method

Sets CurrentX, CurrentY properties to

Circle

The center of the object.

Line

The end point of the line (the x2, y2 coordinates).

Print

The next print position.


See Also   Circle method, DrawMode property, DrawStyle property, Event properties, Left, Top properties, Line method, Print event, Print method, Scale method, ScaleHeight, ScaleWidth properties, ScaleLeft, ScaleTop properties, ScaleMode property.

Example

See the Print method example.