PrintScreen PowerScript function
Description
Prints the screen image as part of a print job.
Syntax
1 |
<span>PrintScreen</span> ( <span>printjobnumber</span>, <span>x</span>, <span>y </span>{, <span>width</span>, <span>height</span> } ) |
Argument |
Description |
---|---|
printjobnumber |
The number the PrintOpen function |
x |
An integer whose value is the x coordinate |
y |
An integer whose value is the y coordinate |
width |
The integer width of the printed screen |
height |
The integer height of the printed screen |
Return Values
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 |
long Job |
1 |
Job = PrintOpen() |
1 |
<span>PrintScreen</span>(Job, 500,1000) |
1 |
PrintClose(Job) |