G
Guest
I have a button in my html page for exporting to excel files using the
RenderControl function. When the table generated is small in rows size it
works fine, but when there are much more rows (more than 5000) the excel loss
format in the last rows mainly in Rowsan or Colspan property for the table.
This is the code I'm using
Response.Clear();
Response.Buffer=true;
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
System.IO.StringWriter oStringWriter = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter oHtmlTextWriter = new
System.Web.UI.HtmlTextWriter(oStringWriter);
Page.RenderControl(oHtmlTextWriter);
Response.Write(oStringWriter.ToString());
Response.End();
Some help?
RenderControl function. When the table generated is small in rows size it
works fine, but when there are much more rows (more than 5000) the excel loss
format in the last rows mainly in Rowsan or Colspan property for the table.
This is the code I'm using
Response.Clear();
Response.Buffer=true;
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
System.IO.StringWriter oStringWriter = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter oHtmlTextWriter = new
System.Web.UI.HtmlTextWriter(oStringWriter);
Page.RenderControl(oHtmlTextWriter);
Response.Write(oStringWriter.ToString());
Response.End();
Some help?