The PrintDocwin transaction prints the specified document using the specified print settings or those set by the user in the Print dialog box. To print just an area of a window, use PrintAreaDocwin.
Type XTYP_EXECUTE
Syntax [PrintDocwin(docwinID, pageRange, firstPage, lastPage, numCopies, useDialog, printType, <tile>, <scaleMode>, <orientation>, <printBanner>)]
|
Parameter |
Data type |
Values |
Meaning |
|
docwinID |
DWORD |
0 | docwinID |
active | specific |
|
pageRange |
WORD |
1 |
current page |
|
|
|
2 |
selected pages |
|
|
|
3 |
all pages |
|
firstPage |
WORD |
1 to last page |
first page of range |
|
lastPage |
WORD |
1 to last page |
last page of range |
|
numCopies |
WORD |
1 or more |
number of copies |
|
useDialog |
BOOL |
0 |
use transaction settings |
|
|
|
1 |
use Print dialog box settings |
|
printType |
WORD |
0 |
current value |
|
|
|
1 |
all layers, hidden or displayed |
|
|
|
2 |
only displayed layers |
|
|
|
4 |
what is displayed within the window boundary |
|
|
|
8 |
the active raster layer only |
|
|
|
16 |
the active edit layer only |
|
|
|
32 |
displayed rasters |
|
|
|
64 |
displayed edits |
|
tile |
BOOL |
0 1 |
do not tile tile images at actual size |
|
scaleMode |
WORD |
0 |
current value |
|
|
|
1 |
to fit |
|
|
|
2 |
actual size |
|
|
|
3 |
to half page |
|
|
|
4 |
no scaling (1:1) |
|
|
|
5 |
actual size or to fit |
|
orientation |
WORD |
0 |
current value |
|
|
|
1 |
best fit |
|
|
|
2 |
portrait |
|
|
|
3 |
landscape |
|
|
|
4 |
minimum length |
|
printBanner |
BOOL |
0 |
do not print banner |
|
|
|
1 |
print banner |
Remarks
The last four parameters are optional. If they are not specified, values of 0 are used.
Release information
Added in Release 3.50.
See also