Set Printer Options

In Version 3.0.112 a new function to set the printer options has been introduced. This function is required to set the amount of copies, the paper size, color, duplex printing, etc.

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



Please ask...

Although we really tried hard, there are always questions left open.

Please send us your question.
We would be glad to answer it.
PDF SDKPDF Signature APICertificate PropertiesSample CodeText StampsPDF AttachmentsImage 2 PDFPDF to Multipage TIFFAppend PDFInsert Blank PageRender ImageStamp PDF with PDFDraw PDF as LetterheadApply LetterheadPDF BackgroundsAdd NotesURL HotspotSecure PDF ViewerPDF OptimizerPDF Encryption APIPDF Printing APIPrint URLDefine Printer OptionsPDF BookmarksPDF BarcodingMerge PDF DocumentsSample APIsResize PDFCrop PDF PagePDF InformationPDF2TXTNormalize PagesDirect PDF ConversionPDF Form Saver SDKSmart Card APIAloaha Web ServicesAloaha Print MonitorAloaha Remote ConfigurationWebDAVLDAP ClientProgramming Office MacrosIIS Event Sinks