Solved

Export GridView to PDF

Posted on 2009-05-11
3
577 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

734 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