Solved

Export GridView to PDF

Posted on 2009-05-11
3
572 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
3 Comments
 
LVL 7

Accepted Solution

by:
zwei earned 200 total points
Comment Utility
0
 
LVL 7

Assisted Solution

by:urir10
urir10 earned 100 total points
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now