0

When i trying execute, i get exception 'Exception from HRESULT: 0x800A03EC'.

// - Open the source workbook
excelDocument = excelApplication.Workbooks.Open(excelDocumentPath);

if (excelDocument != null)
{
      // - Save it in the target format
      excelDocument.ExportAsFixedFormat(paramExportFormat,
                                        pdfFile,
                                        paramExportQuality,
                                        paramIncludeDocProps,
                                        paramIgnorePrintAreas,
                                        paramFromPage,
                                        paramToPage,
                                        paramOpenAfterPublish,
                                        paramMissing);
}
Kavaliou
  • 63
  • 1
  • 2
  • 8
  • Without more information about what values those params have it's unlikely this will receive any answers. – Eddy Mar 26 '12 at 07:37
  • [Resolved](http://stackoverflow.com/questions/1981395/windows-7-net-excel-saveas-error-exception-from-hresult-0x800a03ec/1986575#1986575). Thank Stackoverflow – Kavaliou Mar 26 '12 at 08:38
  • 1
    This error can also happen when trying to export a completely empty Excel worksheet to PDF (reproduced under Excel 2016). – Branko Dimitrijevic Jun 01 '16 at 10:02
  • @BrankoDimitrijevic Thank you! Your comment saved me a lot of time. – Gravitate Apr 30 '19 at 16:22

0 Answers0