Google/Bing didnt bring up any solution to my following problem, hope someone can help me:
We have to print various PDF files in our C# based program. Before we can print, we have to configure the printer, e.g. setting the orientation to landscape.
I tried to change the default printer settings e.g. like this:
PrinterSettings settings = new PrinterSettings();
settings.PrinterName = "\\SomeNetworkPrinter";
settings.DefaultPageSettings.Landscape = true;
settings.Duplex = Duplex.Horizontal;
We send the PDF to the printer via PDFSharp, which basically works, but my settings are completly ignored. Isn't it possible to change the default printer settings this way? Do we have any chance to change the settings and print our PDF-files?
Thank you very much in advance!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…