本帖最后由 Ellia.Duan 于 2022-11-16 13:44 编辑
通过spread.js 生成 json 传给 gexcel 导出pdf,报错。
具体错误如下,显示内存溢出,超出数值所支持的范围,实际数据并不大,大概两个sheet,每个sheet大概500行,20列左右.
ERROR System.OutOfMemoryException: Array dimensions exceeded supported range.
at GrapeCity.Documents.Excel.ii.f(Int32 A_0, Int32 A_1, Int32 A_2, Int32 A_3)
at GrapeCity.Documents.Excel.alb.j(IEnumerable`1 A_0, Boolean A_1)+MoveNext()
at GrapeCity.Documents.Excel.cn.a(f5 A_0)
at GrapeCity.Documents.Excel.cn.dt(f5 A_0, Int32 A_1, Int32 A_2, Object A_3, Boolean A_4)
at GrapeCity.Documents.Excel.c2.dv(f5 A_0, Int32 A_1, Int32 A_2, Object A_3)
at GrapeCity.Documents.Excel.cu.d6(IList`1 A_0, Int32 A_1, Int32 A_2, Object A_3)
at GrapeCity.Documents.Excel.alb.j(g5 A_0)
at GrapeCity.Documents.Excel.alb.j(g5 A_0, Boolean A_1, Boolean A_2, Boolean A_3, Boolean A_4, Boolean A_5)
at GrapeCity.Documents.Excel.alb.awv(Int32 A_0, Int32 A_1, Boolean& A_2)
at GrapeCity.Documents.Excel.ViewModel.c4.b()
at GrapeCity.Documents.Excel.ViewModel.c4..ctor(alg A_0)
at GrapeCity.Documents.Excel.alg.d(w1 A_0, Nullable`1 A_1)
at GrapeCity.Documents.Excel.alg.a(w1 A_0)
at GrapeCity.Documents.Excel.alg.c()
at GrapeCity.Documents.Excel.ViewModel.b9.a(IRange A_0)
at GrapeCity.Documents.Excel.ViewModel.b9.b(IRange A_0)
at GrapeCity.Documents.Excel.PDF.g.a(ale A_0)
at GrapeCity.Documents.Excel.PDF.g.a(Stream A_0, Workbook A_1, PdfSaveOptions A_2, Nullable`1 A_3)
at GrapeCity.Documents.Excel.Workbook.a(Stream A_0, PdfSaveOptions A_1)
at GrapeCity.Documents.Excel.Workbook.Save(String fileName, SaveOptionsBase options)
|