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.

Tue Apr 14, 2020 5:44 pm

Hey, what's up?
I was wondering if it's possible to set up a timeout for printing a document.
And I'd like to know if there's a default value for that timeout.

Code: Select all
public static void PrintPdf(string file, string print)
        {
            var doc = new PdfDocument();

            doc.LoadFromFile(file);
            doc.PrinterName = print;
           
            //I'd like to set the timeout in case the printout takes a little longer than desired

            doc.PrintDocument.Print();               
        }

matheustonetto
 
Posts: 1
Joined: Tue Apr 14, 2020 5:37 pm

Wed Apr 15, 2020 6:00 am

Hello,

Thanks for your inquiry.
Do you want to set a maximum delay time for printing documents, so that the printing process will be terminated when the printing time exceeds the timeout value? If so, sorry to tell that our Spire.PDF doesn't support this feature. Meanwhile, there is no default value for timeout inside our product.
If you have further questions, please feel free to contact us.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.PDF