Error while generating a PDF file with Excel in ASP.NET
- by l2mt
I have to generate an excel file and a PDF file from an asp.net application. I'm using the Interop assemblies and I can generate the excel file without any problem. But when I'm generating an pdf file with the add-in SaveAsPDFandXPS.exe I'm getting the next error:
Exception HRESULT: 0x800A03EC
with a debug I see the error is in the next method which is used to export de PDF file:
_objWB.ExportAsFixedFormat(Excel.XlFixedFormatType.xlTypePDF, _nombreArchivo,
Excel.XlFixedFormatQuality.xlQualityStandard, false, false, Type.Missing,
Type.Missing, false, Type.Missing);