Tab
A newer version of this page is available. Switch to the current version.

ASPxCardViewExporter Class

An ASPxCardViewExporter control used to export the ASPxCardView control's data.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class ASPxCardViewExporter :
    ASPxGridExporterBase
Public Class ASPxCardViewExporter
    Inherits ASPxGridExporterBase

Remarks

The ASPxCardViewExporter component allows you to export the ASPxCardView's data to a file or stream in various formats - PDF, RTF, XLSX, and XLS. To learn more, see Built-in Export .

Note that the ASPxCardViewExporter cannot export data columns that are hidden, nor can it export the content of templates.

Templated elements are exported with their default representation. For instance, if you export a grid with templated cells, they are represented as default labels with text in the obtained file.

NOTE

Don't export the ASPxCardView's content during callbacks, because ASP.NET does not support sending binary content during a callback.

NOTE

Before exporting a grid, the ASPxCardViewExporter component creates an export document on a server. Therefore, when you export a large amount of data to a server with limited memory, the OutOfMemoryException exception can appear.

Examples

This example demonstrates how to export grid data to a file in a PDF format using the ASPxGridBase.ExportPdfToResponse method.

PdfExportOptions options = new PdfExportOptions();
options.Compressed = false;
ASPxGridView1.ExportPdfToResponse(options);
See Also