OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

error in higer version of openoffice reports in ASP.net 2.0

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
AMIT Saxena
Newbie
Newbie


Joined: 06 Jan 2009
Posts: 1

PostPosted: Tue Jan 06, 2009 1:40 am    Post subject: error in higer version of openoffice reports in ASP.net 2.0 Reply with quote

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]
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group