Hi,
I am trying to convert an Excel file to PDF on a Windows 2003 Server. I have a service running which creates reports in Excel first, then converted them to PDF using your DynamicPDF Converter module. When it tries to run the following code, I get the following error:
***********************************************************
string inputFileName = sSaveAs.Replace("//", "\\");
string outputFileName = sSaveAsPDF.Replace("//", "\\");
Converter.Convert(@inputFileName, @outputFileName);
***********************************************************
Error:
***********************************************************
System.Exception - System.Exception: Conversion failed ---> System.Drawing.Printing.InvalidPrinterException: No printers are installed.
at bc.b(ac A_0, ac A_1)
--- End of inner exception stack trace ---
at ceTe.DynamicPDF.Conversion.Converter.Convert(ConversionOptions conversionOptions)
at ceTe.DynamicPDF.Conversion.Program.a.b()
at ceTe.DynamicPDF.Conversion.Program.a(Byte[] A_0)
at ceTe.DynamicPDF.Conversion.Program.a(Object A_0)
StackTrace:
at ceTe.DynamicPDF.Conversion.Converter.Convert(String sourceFilePath, String outputFilePath, ConversionOptions conversionOptions)
at PCIM.Common.ReportGen.PopulateReports(DataRow drProd, DateTime asatDate, Boolean frenchRpt) in C:\Inetpub\wwwroot\PCIM.redux\PCIM.Common\ReportGen.cs:line 478
-----------------------------------
InnerException #1:System.Exception
System.Exception: Conversion failed ---> System.Drawing.Printing.InvalidPrinterException: No printers are installed.
at bc.b(ac A_0, ac A_1)
--- End of inner exception stack trace ---
at ceTe.DynamicPDF.Conversion.Converter.Convert(ConversionOptions conversionOptions)
at ceTe.DynamicPDF.Conversion.Program.a.b()
at ceTe.DynamicPDF.Conversion.Program.a(Byte[] A_0)
at ceTe.DynamicPDF.Conversion.Program.a(Object A_0)
StackTrace
at g.a(Object A_0)
***********************************************************
I have Excel 2007 installed on the server along with the DynamicPDF Converter appplication. Is there anything else I need to do? If I have to add a printer, what do I need to do, as I don't have any printers availavble on the Win 2003 Server (it is at a hosting site)?
Thanks,
Mark