Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Export Gridview to pdf using asp.net 2.0

Export Gridview to pdf using asp.net 2.0

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netadobetoolshelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    A Muthunagai
    wrote on last edited by
    #1

    Hi, How to Export Gridview to pdf in asp.net I searched in many forums. but many of them said to use third party tools. I don't want any third party tools. Suggest me any sample for without using third party tool and export Gridview to pdf The Below code is working, When I open the Pdf file the error is showing that " Adobe reader could not open test.pdf. because the file type hasbeen damaged" How to Resolve this? Thanks in advance Dim FilePath As String = "c:\test.pdf" response.ContentType = "application/pdf" response.AddHeader("Content-Type", "application/pdf") response.AddHeader("Content-Disposition", "attachment; filename=" + FilePath) response.WriteFile(FilePath) response.end()

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups