Export grid to Excel, Pdf and txt (csv)

This demo is showing how to build the grid model and use it to export the data in various formats (xls, pdf, txt) using external libraries and custom code.

Drag a column header and drop it here to group by that column
Id
Person
Food
Date
Price
Country
Chef
Location
3675MaryShepherd's pie11/19/202218 USDLa CroisettePepper TomatoDiner
3671JeremyPizza6/13/201079 USDRegentDemeter HarvestTavern
3667JohnCheesecake9/25/2015100 USDWinterspringJosh BaskinRestaurant
3663MichaelHot Beverage2/13/201220 USDJisinaPepper TomatoVisit
3659GabrielleFrench toast5/19/201645 USDGoldshireOmu ManTavern
3655LucyBig Salad4/3/201970 USDStormwindOmu ManTavern
3651CheyenneBig Salad11/1/201770 USDWestfallOmu ManVisit
3647JonahShepherd's pie4/27/202023 USDSylvanaarJoanna StanVisit
3643FernandoSoup5/7/201050 USDGhidrimestiChef ChefUniversity
3639AudreyShepherd's pie5/17/201170 USDPiccadillyCharles DucheminUniversity
Total
 
 
Max: 11/19/2022Min: 18
 
 
 





Export the content of a grid to excel, pdf and txt file (csv). To create an excel file we're using the NPOI library.
For exporting to Pdf the iText7 library is used.
To get the entire source code you can download this demo.



Comments