Solved

Export GridView to PDF

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

860 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