The DevExpress ASP.NET MVC Card View allows you to export its data with ease. Using specific static methods provided at the CardViewExtension class level, the CardView’s data can be exported to a file or stream in the following formats.
- PDF (ExportToPdf, WritePdf)
- XLS (ExportToXls, WriteXls)
- XLSX (ExportToXlsx, WriteXlsx)
- RTF (ExportToRtf, WriteRtf)
- DOCX (ExportToDocx, WriteDocx)
This demo illustrates how data within the Card View can be exported to different formats - based on the Card View's current settings (defined in a single location - within the Controller). These settings are passed to a View containing the extension’s markup - 'View(partial)' - and they are also used by export methods.
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxCardViewDemos