Solved

Simple MVC grid that is populated with data, How to extract it as a pdf

Posted on 2014-10-31
2
187 Views
Last Modified: 2014-11-06
I have this simple MVC grid with data populated from a search result and what I would like next to the Delete link is a pdf Icon and once I click on it it does a export in pdf as a nice format on what is displayed on the data grid

Can anyone give me some tip on how to do this?


MVCDataGrid.jpg
0
Comment
Question by:yguyon28
  • 2
2 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 40421674
The better answer depends on what you are using for the grid, but there is always iTextSharp to generate a PDF in code.

iTextSharp, a .NET PDF library
http://sourceforge.net/projects/itextsharp/
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 40421682
Another approach is to use XSLT to generate a PDF.

FOP C# Port
http://sourceforge.net/projects/fop-dotnet/

This project is a port of the Apache Java-based XSL-FO formatter FOP to C#. The purpose is to support the growth and adoption of the XSL-FO standard and to make FOPs capabilities embeddable in managed code applications for the .NET CLR
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 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

16 Experts available now in Live!

Get 1:1 Help Now