Posts

Showing posts from March, 2012

Gridview: convert asp.net page in pdf

Gridview: convert asp.net page in pdf : Hello  Friends.... Today  i  am going to share with you  my real story what i am faced when i am trying to generate a  automated and secu...

convert asp.net page in pdf

Convert asp.net page in Pdf Today  i  am going to share with you  my real story what i am faced when i am trying to generate a  automated and secure system for generating company invoice....   The major problem was with me  is  that i m going to work on tally data .   Firstly i had work on data.convert all tally data in sql format ,so that i ma use it  on run time. After  that i m came on real work with asp.net.... i   just simply  write some code with sql  query on .aspx  form   fro selecting a  unique invoice number from database  and then direct this  inovice no to another page  for its  real (PDF generation).. Download some dll (1)itextsharp.dll (2)QueryStringEncryption.dll (3)Interop.LCC11.dll I made a  page with name   .docs.aspx, and its  code is ....         <%        ...

GriedView Pdf download

GriedView Pdf download Here  i wanna  share  something with you about Gridview PdF Format Download.. .aspx Part <div id ="kandy" runat="Server"> Put your content Those u wana  in pDf </div> .CS Part Here  u include some Namespace like : using System.Text; using System.IO; using System.Diagnostics; using iTextSharp.text.pdf; using iTextSharp.text.html; using iTextSharp.text; using iTextSharp.text.html.simpleparser; //Write This code on any Event At which you wanna generate PDF.   string attachment = "attachment; filename='" + q_str + "'.pdf";         Response.ClearContent();         Response.AddHeader("content-disposition", attachment);         Response.ContentType = "application/pdf";         StringWriter stw = new StringWriter();         HtmlTextWriter htextw = new HtmlTex...