您好,关于这个问题,刚收到研发的反馈如下:
- In the excel, all column have been customized, like below:
- <col min="46" max="46" width="17.6640625" style="11" hidden="1" customWidth="1" collapsed="1"/>
- <col min="47" max="49" width="17" style="6" hidden="1" customWidth="1" outlineLevel="1" collapsed="1"/>
- <col min="50" max="50" width="17" style="6" collapsed="1"/>
- <col min="51" max="51" width="18.6640625" style="6" customWidth="1" collapsed="1"/>
- <col min="52" max="53" width="17" style="6" collapsed="1"/>
- <col min="54" max="54" width="21" style="6" customWidth="1" collapsed="1"/>
- <col min="55" max="16384" width="17" style="6" collapsed="1"/>
- </cols>
-
- And give a column group.
-
- When loading that excel, the column count will be 16384, and then apply a column outline.
-
- When printing, all the column will join paging logic, there will be a very very very paging count . (13,000 pages) for one sheet.
-
- For workaround, please invoke setColumnCount after fromJSON.
- sheet.setColumnCount(50);
- Please suggest to the customer.
复制代码
研发分析了您的Excel文档,发现文档中的列数多达16384列,并且设置了大量的用户分组,
这导致每一列都会参与分页逻辑,从而导致每个worksheet会出现超过13000页的数据。
SpreadJS由于引入了lazyload机制,加载渲染都没有问题,但是浏览器端打印是需要调用
浏览器的打印接口,浏览器接受了如此多数据后,会导致卡死。
给您的建议是:在fromJSON加载后,调用sheet.setColumnCount(70)把所有sheet的列数限制
在70列,去掉无意义的空列。
|