Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Export GridView to PDF

Posted on 2009-05-11
3
Medium Priority
?
579 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 800 total points
ID: 24357973
0
 
LVL 7

Assisted Solution

by:urir10
urir10 earned 400 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

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…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

722 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