This function is required to set the amount of copies, the paper size, color, duplex printing, etc. when using our Print API.
Syntax in VB Notation:
function SetupPrinter(PrinterName As String, Copies As Long, Duplex As Long, PQuality As Long, PColor As Long, PCollate As Long, POriantation As Long, PPaperSize As Long) As String
Variables:
PPaperSize:
1 to 68, see DMPAPER values in Win32 API documentation for DEVMODE data structure.
0 and 9 = A4
Copies: Number of copies
PQuality:
0 = medium
1 = high
2 = medium
3 = low
4 = draft
PColor:
0 = color
1 = monochrome
2 = color
Duplex:
0 = simplex
1 = simplex
2 = vertical duplex
3 = horizontal duplex
PCollate:
0 = no
1 = yes
POrientation:
0 = portrait
1 = portrait
2 = landscape