Printing PDFs with changed default printer settings

前端 未结 2 842
挽巷
挽巷 2020-12-21 03:56

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

2条回答
  •  时光说笑
    2020-12-21 04:38

    No, I don't think that's going to work.

    You're creating a local PrinterSettings object which can be used to configure a PrintDocument which in turn can be sent to the printer using PrintDocument.Print().

    If you're calling out to PDFSharp to orchestrate the printing, it's going to use whatever printer settings it defaults to, unless you're somehow passing your PrinterSettings to PDFSharp via the API?

    If you can post the code you use to invoke PDFSharp, it would be of help in figuring out how to do this.

提交回复
热议问题