Hello,
i'm using the following Code io to print pdfs using the PrintDialog to change some Settings before subbmitting print orders.
Dim pDialog As PrintDialog = New PrintDialog
pDialog.AllowPrintToFile = True
pDialog.AllowSomePages = True
pDialog.PrinterSettings.MinimumPage = 1
pDialog.PrinterSettings.MaximumPage = doc.Pages.Count
pDialog.PrinterSettings.FromPage = 1
pDialog.PrinterSettings.ToPage = doc.Pages.Count
pDialog.PrinterSettings.PrinterName = strPrinter
If pDialog.ShowDialog = DialogResult.OK Then
doc.PrintFromPage = pDialog.PrinterSettings.FromPage
doc.PrintToPage = pDialog.PrinterSettings.ToPage
doc.PrinterName = pDialog.PrinterSettings.PrinterName
Dim pd As PrintDocument = doc.PrintDocument
pd.DocumentName = Path.GetFileNameWithoutExtension(strPdfSrc)
pDialog.Document = pd
pd.Print()
End If
How can i implement Duplex, draft and Color/black print?
Rgds
Thomas