Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Dec 01, 2017 7:51 pm

Hello,
I am testing you Spire.PDF by using the version found in nuget and I was able to print a pdf file from a simple console program.
but it popped up a message box the show it was print is this from the print spooler ? Is there any way to suppress that popup box this a unattended service and we can't have popup boxes.

Thanks

Mike Keers

mikek
 
Posts: 4
Joined: Fri Dec 01, 2017 7:41 pm

Mon Dec 04, 2017 2:01 am

Hello,

Thanks for your inquiry. Please refer to the below code snippet to print without the popup box.
Code: Select all
            PdfDocument doc = new PdfDocument();
            doc.LoadFromFile(@"sample.pdf");
            doc.PrintSettings.PrinterName = "xxxxxxxx";
            doc.PrintSettings.PrintController = new StandardPrintController();
            doc.Print();


Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Dec 07, 2017 9:43 am

Hello,

Greeting from E-iceblue.
Did you try the code I provided?
Your feedback will be greatly appreciated.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.PDF