Click here to Skip to main content
14,870,616 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i export my DataGrid information into an .csv , excel and PDF file? I'm using Microsoft Visual Studio 2010 with .NET Framework 4.0.

Please suggest me any good link to achieve these three functionalities at a time.


Thanks in advance
Posted

Thanks S.M Ahasan Habib for suggesting me itextsearch.dll for Export Datagrid to PDF.For exporting datatgrid data to Excel,i figured out myself.
   
there are many popular components for export data with various file format like pdf, csv, excel etc. But i used aspose components(word, cells) for doing that and happy with that. Just one thing that is it is not free.

Link-1
[^]

For pdf itextsearch component is also very popular. It is also opensource. If you want code sample then
http://social.msdn.microsoft.com/Forums/vstudio/en-US/0a7a360b-26e3-4dda-a175-8fb634ba52b9/how-to-export-data-from-datagrid-in-wpf-to-pdf-with-c-[^]


You should loop wpf grid and may create datatable based on that grid data and use aspose component and export it as you want.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900