BCL Technologies EasyPDF SDK - WordPrintJob
Posted on 2006-07-03
I have written a web service that converts word and excel documents to pdf using BCL Technologies SDK. This is essentially a DLL that allows you to call certain PDF actions. Here is my code:
(The WordToPDF routine is identical, but the printer object as a WordPrintJob method)
public string ExcelToPDF( string notRef, string xlsFileName, string pdfFileName )
string srcPDF = @"\\DGPDC2\Library\" + notRef + @"\Queue\" + xlsFileName;
string destPDF = @"\\DGPDC2\Library\" + notRef + @"\" + pdfFileName;
BEPPRINTLib.Printer printer = new BEPPRINTLib.PrinterClass();
BEPPRINTLib.ExcelPrintJob printJob = null;
printJob = printer.ExcelPrintJob;
printJob.LicenseKey = "****-****-****-****";
printJob.PrintOut( srcPDF, destPDF );
return "Error: " + err.Message;
The both the WordToPDF and ExcelToPDF routine work perfectly on my local machine. When I upload the code to our web server, the Excel routine works fine, but the Word services fails with a timeout error.
By monitoring the printer manager on the server, I can see that the document is sent to the printer, but all that is created is a 1k PDF document, with no content. The server seems to take far longer to process the word document, even though all of the files I am converting are very small (1 page).
Is there any specific com security that would cause this timeout? How come it works locally?
Where can I start looking? Any help would be greatly appreciated - a job which should have taken a few days is now into the third week. I have contacted BCL and asked them for help, but they are taking some time to reply. Please let me know if you need any other info.