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