Error while generating a PDF file with Excel in ASP.NET
        Posted  
        
            by l2mt
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by l2mt
        
        
        
        Published on 2009-12-07T18:12:38Z
        Indexed on 
            2010/04/11
            16:23 UTC
        
        
        Read the original article
        Hit count: 410
        
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);
        © Stack Overflow or respective owner