views:

139

answers:

0

I am getting a problem when exporting excel files to PDF using Office 2007 dll only On 2008 Server(64 bit). It's working fine on Windows XP. I have also complied the exe for x86 platform. Process hangs on ExportAsFixedFormat Method. Acrobat Pro is also Installed. SaveAsPdf.exe is also installed.

Microsoft.Office.Interop.Excel.Application excelApplication = new Microsoft.Office.Interop.Excel.Application();
object paramMissing=Type.Missing;
excelWorkBook.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF,
paramExportFilePath, XlFixedFormatQuality.xlQualityStandard,
 false, true, paramMissing, paramMissing, paramOpenAfterPublish, paramMissing);

Please help. Thanks In Advance.