Interop.Excel.Application ExportAsFixedFormat - 异常0x800A03EC

时间:2012-03-26 07:13:50

标签: c# excel interop

当我尝试执行时,我得到异常'来自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);
}

0 个答案:

没有答案