You must Sign In to post a response.
  • Category: ASP.NET

    How to convert aspx to pdf

    How to convert PDF in particular panel from one Aspx web Page.That Panel included(Lables,Chart,Photos) very urgently
  • #747682
    Hi,

    Refer below link, here he explain how to export panel content data into pdf format with simple example.


    http://aspsnippets.com/Articles/Export-ASPNet-Panel-contents-to-PDF-using-iTextSharp.aspx

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #747686
    You need to do it easily using any third party tool for example ASPOSE or iTextSharp



    Document document = new Document();
    PdfWriter.GetInstance(document, new FileStream(Request.PhysicalApplicationPath + "\\MySamplePDF.pdf", FileMode.Create));
    document.Open();
    iTextSharp.text.html.simpleparser.HTMLWorker hw =
    new iTextSharp.text.html.simpleparser.HTMLWorker(document);
    hw.Parse(new StringReader(htmlText));
    document.Close();

    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM

  • #747893
    hi,

    Additinal info to Anil, you can try sample demos on MSDN ,check

    http://code.msdn.microsoft.com/SharePoint-Generate-PDF-64cd3252
    http://code.msdn.microsoft.com/Convert-HTML-to-PDF-with-C-b16fc75f

    Hope it makes sense.


  • Sign In to post your comments