I am using the following code to attempt to print a PDF file using Spire PDF.
Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
doc.LoadFromFile(monroneyFilename);
doc.PrinterName = monroneyPrinter;
lock (printLock)
{
doc.PrintDocument.Print();
}
When it gets to the LoadFromFile method, it gives me a File doesn't exist exception. The rest of the code doesn't execute.
The monroneyFilename is "p:\foldername\11111111111111111.pdf" where the ones are 17 characters representing a Vehicle Identification Number.
There are no spaces in the filename or folder name, so the other answers I've seen about this do not apply.
I'm running this from within an ASP.NET Web Service.
Anyone have any ideas?