【发布时间】:2019-02-21 13:16:33
【问题描述】:
我遇到系统内存不足异常。我的 xls 文件大小为 357 mb。我不确定必须配置什么才能允许打开重文件。
我指的是本网站上提供的文档https://help.syncfusion.com/file-formats/xlsio/excel-to-pdf-conversion
堆栈跟踪如下:
在 Syncfusion.XlsIO.Parser.Biff_Records.BiffContinueRecordRaw.ExtractContinueRecords() 在 Syncfusion.XlsIO.Parser.Biff_Records.MSODrawingGroupRecord.ParseStructure() 在 Syncfusion.XlsIO.Parser.Biff_Records.BiffRecordRawWithArray.ParseStructure(DataProvider 提供程序,Int32 iOffset,Int32 iLength,ExcelVersion 版本) 在 Syncfusion.XlsIO.Parser.Biff_Records.BiffRecordRaw.FillRecord(BinaryReader reader, DataProvider provider, IDecryptor decryptor, Byte[] arrBuffer)
如果需要任何信息,请告诉我。
编辑 2: 代码
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
**IWorkbook workbook = application.Workbooks.Open(src_file, ExcelOpenType.Automatic);**
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook);
发生异常的行已用星号标记
【问题讨论】:
-
你能告诉我们你的代码吗?并指出发生异常的行?
-
@ChristianMurschall,我已经用代码更新了我的问题。
标签: c# syncfusion