- Code: Select all
internal static void SendToPrinter(string pdf)
{
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(pdf);
doc.Print();
doc.Close();
doc.Dispose();
}
Now, the question is, once i do the doc.Print() does this spawn a new thread to send to the printer or is it in the same thread, i need to know this because directly after this is completed to send the job to the printer queue, i need to move the actual file to a different folder so i know that document has been printed. I know i can't move a file that is in use and i have created PDF print queues for my documents.
Thanks