Reputation: 569
I need to have a functionality that on click of a button i need to generate pdf file for each record in the datatable.
I require to generate report card and then mail that report card to each person. the data for report card is fetched into a datatable for all students.
I just need a functionality that i can generate individual pdf from datatable.
Thanks
Upvotes: 0
Views: 469
Reputation: 2192
There's a page here that covers various solutions to creating PDF documents on the fly. One of particular note to you looks to be the ASP.NET FO PDF Report Server Control which can generate PDF files directly from a DataTable. It looks rather old but might suffice.
One additional tip is you will want to look at Caching solutions too, so that you are not always generating a new PDF every time the button is clicked, unless you specifically want that to happen (for instance if the server-load won't be that high and/or the data is changing frequently, though it doesn't sound like it is).
Upvotes: 1