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();
}