PrintScreen
PowerScript function
Description
Prints the screen image as part of a print job.
Syntax
|
1 |
PrintScreen ( printjobnumber, x, y {, width, height } ) |
|
Argument |
Description |
|---|---|
|
printjobnumber |
The number the PrintOpen function assigns to the print |
|
x |
An integer whose value is the x coordinate on the page, in |
|
y |
An integer whose value is the y coordinate on the page, in |
|
width (optional) |
The integer width of the printed screen in thousandths of |
|
height (optional) |
The integer height of the printed screen in thousandths of |
Return value
Integer. Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, PrintScreen returns null.
Examples
This statement prints the current screen image in its original size
at location 500, 1000:
|
1 2 3 4 |
long Job Job = PrintOpen() PrintScreen(Job, 500,1000) PrintClose(Job) |
See also