Dear Bglodde,
But iText Provide the solution for convert Datatable to PDF not asp.net to PDF, if any efficent solution for that please help me ASAP
Regards: Chittaranjan Sahoo
From ASP.NET to PDF, you can use iText.NET
http://sourceforge.net/pro
To export to MSWord, as long as the client has it installed, something similar to this will work:
' export a datagrid to ms word
Response.Clear();
Response.AddHeader("conten
Response.Charset = "";
Response.Cache.SetCacheabi
Response.ContentType = "application/vnd.word";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWrit
myDataGrid.RenderControl(h
Response.Write(stringWrite
Response.End();
I'm sure there are simpler commercial solutions out there as well.
Main Topics
Browse All Topics





by: bgloddePosted on 2005-11-26 at 11:28:28ID: 15365652
From ASP.NET to PDF, you can use iText.NET jects/itex tdotnet/
t-disposit ion", "attachment;filename=FileN ame.doc"); lity(HttpC acheabilit y.NoCache) ;
er htmlWrite = new HtmlTextWriter(stringWrite );
tmlWrite);
.ToString( ));
http://sourceforge.net/pro
To export to MSWord, as long as the client has it installed, something similar to this will work:
' export a datagrid to ms word
Response.Clear();
Response.AddHeader("conten
Response.Charset = "";
Response.Cache.SetCacheabi
Response.ContentType = "application/vnd.word";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWrit
myDataGrid.RenderControl(h
Response.Write(stringWrite
Response.End();
I'm sure there are simpler commercial solutions out there as well.