Solved

Export GridView to PDF

Posted on 2009-05-11
3
578 Views
Last Modified: 2013-12-17
Hi,
How do i export a asp.net 2.0 GridView bound to a dataset to a PDF document.
Requirement is that when the button the clicked a dialog box should open up so that user could save it as PDF file on the system. thanks in advance
0
Comment
Question by:dotnet0824
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
zwei earned 200 total points
ID: 24357973
0
 
LVL 7

Assisted Solution

by:urir10
urir10 earned 100 total points
ID: 24358030
I think the best way is to use Crystal report.

Trying these links maybe it will help starting it up:

http://aspalliance.com/articleViewer.aspx?aId=776&pId=-1
http://www.developerfusion.com/code/4266/how-to-create-pdf-files-from-aspnet-pages/

Or you could also try iText:
http://sourceforge.net/projects/itextsharp/
0
 
LVL 12

Expert Comment

by:williamcampbell
ID: 24359211
Have you looked into the ReportViewer control?

You can feed the GridView datasource to the ReportViewer. The control then allows the user to either view  / print / preview / export to Excel or PDF all from the control, pretty nice.
0

Featured Post

Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question