[英]Getting error when am export large data to excel
Am using some code to export data from gridview. 我正在使用一些代码从gridview导出数据。 Suppose if I have small content it export the data perfectly.
假设我的内容很小,它可以完美地导出数据。 But the grid have some lage amount of data then it display the below message " exception of type 'system.outofmemoryexception' was thrown.".
但是网格中有大量数据,然后显示以下消息“引发了'system.outofmemoryexception'类型的异常。”。 Please help me to fix this error.
请帮助我解决此错误。 am not able to fix this...
无法解决此问题...
This is my partial code : 这是我的部分代码:
Sales_GridView.RenderControl(htw);//Error in this line
Response.Write(sw.ToString());
Response.End();
工作表大小为65,536行乘256列,因此在将数据导出到excel时检查该行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.