Export asp.net page to pdf

Discussion in 'ASP .Net' started by sonali, Jul 20, 2006.

  1. sonali

    sonali Guest

    i want to export asp.net page to pdf format
    its urgent
    is there any way to do this
     
    sonali, Jul 20, 2006
    #1
    1. Advertising

  2. "sonali" <> wrote in message
    news:...
    >i want to export asp.net page to pdf format
    > its urgent
    > is there any way to do this
    >


    You'll probably need to use a PDF-component.
    Check these out:
    http://www.411asp.net/home/assembly/document/pdf

    Marius
     
    Marius Tennes Krogh, Jul 20, 2006
    #2
    1. Advertising

  3. sonali

    sonali Guest

    Marius Tennes Krogh wrote:
    > "sonali" <> wrote in message
    > news:...
    > >i want to export asp.net page to pdf format
    > > its urgent
    > > is there any way to do this
    > >

    >
    > You'll probably need to use a PDF-component.
    > Check these out:
    > http://www.411asp.net/home/assembly/document/pdf
    >
    > Marius






    Response.Clear()
    Response.ContentType = "application/pdf"
    Response.AddHeader("content-disposition",
    "attachment;filename=exportpdf.pdf")
    Response.Charset = ""
    Response.Cache.SetCacheability(HttpCacheability.NoCache)

    Dim tw As New System.IO.StringWriter()
    Dim hw As New System.Web.UI.HtmlTextWriter(tw)

    Dim frm As HtmlForm = New HtmlForm()
    Me.Controls.Add(frm)
    frm.Controls.Add(TABLE1)

    'Me.Controls.Add(frm)
    'frm.Controls.Add(Image1)
    frm.RenderControl(hw)
    Response.Write(tw.ToString())
    Response.End()


    error with this code
    can't able to save file as pdf
    please suggest something
     
    sonali, Jul 20, 2006
    #3
  4. sonali

    Mischa Kroon Guest

    Mischa Kroon, Jul 20, 2006
    #4
  5. sonali

    sonali Guest

    sonali, Jul 20, 2006
    #5
  6. Sonali,

    You can't export to PDF format as like other formats by using
    ContentType etc., You need to use a PDF component to export from your
    original format. PDF component knows how to make a PDF file by using
    given text data.

    Use the http://www.websupergoo.com/abcpdf-1.htm, if you get any error
    while using the component, please elaborate the problem.

    --
    Vadivel Kumar
    http://www.vadivelk.net
    (remove "online.")

    sonali wrote:
    > Mischa Kroon wrote:
    >>> error with this code
    >>> can't able to save file as pdf
    >>> please suggest something

    >> Use a pdf component :p
    >>
    >> Like:
    >> http://www.websupergoo.com/abcpdf-1.htm
    >>
    >> Features:
    >> http://www.websupergoo.com/abcpdf-8.htm

    >
    >
    >
    > can't able to use it
    >
     
    Vadivel Kumar, Jul 20, 2006
    #6
  7. sonali

    sonali Guest

    Vadivel Kumar wrote:
    > Sonali,
    >
    > You can't export to PDF format as like other formats by using
    > ContentType etc., You need to use a PDF component to export from your
    > original format. PDF component knows how to make a PDF file by using
    > given text data.
    >
    > Use the http://www.websupergoo.com/abcpdf-1.htm, if you get any error
    > while using the component, please elaborate the problem.
    >
    > --
    > Vadivel Kumar
    > http://www.vadivelk.net
    > (remove "online.")
    >
    > sonali wrote:
    > > Mischa Kroon wrote:
    > >>> error with this code
    > >>> can't able to save file as pdf
    > >>> please suggest something
    > >> Use a pdf component :p
    > >>
    > >> Like:
    > >> http://www.websupergoo.com/abcpdf-1.htm
    > >>
    > >> Features:
    > >> http://www.websupergoo.com/abcpdf-8.htm

    > >
    > >
    > >
    > > how to use it
    > >
     
    sonali, Jul 21, 2006
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. poppy
    Replies:
    0
    Views:
    1,331
    poppy
    May 5, 2005
  2. Richard Coltrane

    ReportViewer export to PDF = PDF[1].

    Richard Coltrane, Feb 25, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    1,057
    Richard Coltrane
    Feb 25, 2007
  3. Replies:
    1
    Views:
    1,509
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Jul 2, 2008
  4. Maarten Porters
    Replies:
    1
    Views:
    432
    Florian Gilcher
    Jul 28, 2008
Loading...

Share This Page