本文介绍了在c#中使用EPPlus应用样式时Excel文件大小增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用EPPlus将数据表导出到excel文件,并在导出之前为某些单元格范围应用样式。由于样式,文件大小急剧增加到5 MB。当我导出相同而不应用任何样式时,其大小为400 kb。问题是什么??它的解决方案是什么?
解决方案
I am exporting a datatable to an excel file using EPPlus and the applying styles for some range of cells before exporting.Because of the styles, the file size increases drastically to 5 MB. When I export the same without applying any styles its size is 400 kb. What is the problem?? and what is its solution?
解决方案
这篇关于在c#中使用EPPlus应用样式时Excel文件大小增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!