PrintY

Description

Reports the y coordinate of the print cursor.

Syntax

PrintY ( printjobnumber )

Argument

Description

printjobnumber

The number the PrintOpen function assigned to the print job


Return value

Integer. Returns the y coordinate of the cursor if it succeeds and -1 if an error occurs. If any argument's value is null, PrintY returns null.

Examples

These statements print a bitmap one inch below the location of the print cursor:

integer LocX, LocY
long Job
Job = PrintOpen()
... //Print statements
LocX = PrintX(Job)
LocY = PrintY(Job) + 1000
PrintBitmap(Job, "CORP.BMP", LocX, LocY, 1000,1000)

See also

PrintX