AMIT Saxena Newbie

Joined: 06 Jan 2009 Posts: 1
|
Posted: Tue Jan 06, 2009 1:40 am Post subject: error in higer version of openoffice reports in ASP.net 2.0 |
|
|
the problem is like we have used open office to generate the reports in asp.net 2.0. The reports works very fine with open office version 2.2 , but reports does not display any data with the higher versions of open office (.e.g 3.0 ).
Error: Could not find the specified file i.e .xls
Please help its urgent.......
Thanks in advance.
| Code: |
Response.AddHeader("content-disposition", "attachment;filename=AgentReport.xls");
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.xls";
StringWriter stringWrite = new StringWriter();
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
String strstyle = "<style>.text { mso-number-format:\\; } </style>";
stringWrite.WriteLine(strstyle);
dg.RenderControl(htmlWrite);
stringWrite.GetStringBuilder().Append("</table>");
Response.Write(stringWrite.ToString());
Response.End();
| [/url] |
|