Reputation: 1086
i need to export a datagrid to excel and pdf however i can't do that through a reportviewer because i don't have a database, i set manually the values of my datagrid. Is there a way to do that, preferably without a third party library. thanks in advance!
Upvotes: 0
Views: 1306
Reputation: 841
if you can't use reportviewer, maybe you can try for:
XLS: NPOI http://code.google.com/p/npoi/
PDF: PDFSharp or MigraDoc http://www.pdfsharp.net/
Upvotes: 2
Reputation: 865
ReportViewer doesn't need a database. It can be run in Local Processing mode. If you care about formatting, this is absolutely the best way. For excel with no formatting you could output a CSV file, but writing a PDF without a third party library is going to be a challenge.
Upvotes: 1