Skip to main content
Tab

ASPxCardViewExporter.CardWidth Property

Gets or sets a value specifying the width of a card within the exported document.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(150)]
public int CardWidth { get; set; }

Property Value

Type Default Description
Int32 150

An integer value which specifies the card width, in pixels.

Remarks

The CardWidth property is used to specify the width of a card within the exported document. If the CardWidth property isn’t defined, the default width of a card is specified by the value of the ASPxCardViewExporter.DefaultCardWidth field.

Example

To see data export in action, refer to the following online demo: Exporting to PDF, XLS, XLSX, RTF.

public partial class Exporting_Exporting : System.Web.UI.Page {
    protected void btnPdfExport_Click(object sender, EventArgs e) {
        cardViewExport.WritePdfToResponse();
    }
    protected void btnXlsExport_Click(object sender, EventArgs e) {
        cardViewExport.WriteXlsToResponse(new XlsExportOptionsEx() { ExportType = ExportType.DataAware });
    }
    protected void btnXlsxExport_Click(object sender, EventArgs e) {
        cardViewExport.WriteXlsxToResponse(new XlsxExportOptionsEx() { ExportType = ExportType.DataAware });
    }
    protected void btnRtfExport_Click(object sender, EventArgs e) {
        cardViewExport.WriteRtfToResponse();
    }
}
See Also