Skip to main content

CsvExportOptions.FollowReportLayout Property

Specifies if CSV export should follow the report layout.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v22.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design


public static bool FollowReportLayout { get; set; }

Property Value

Type Default Description
Boolean true

true, to follow the report layout in CSV export; false otherwise.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to FollowReportLayout
Cross-Platform Class Library ExportOptions
WPF Controls ExportOptionsContainer


Set FollowReportLayout to true to add a column to a CSV export file for each space between report controls. Use the CsvExportOptions.SkipEmptyRows and CsvExportOptions.SkipEmptyColumns properties to specify if CSV export should skip empty rows and columns.



The code sample below shows how to prohibit the CSV export from following the report layout:

using DevExpress.XtraPrinting;
using DevExpress.XtraReports.UI;
// ...
public bool ExportReport(XtraReport report, string filename) {
    try {
        var options = new CsvExportOptions();
        options.SkipEmptyColumns = false;
        options.SkipEmptyRows = false;
        CsvExportOptions.FollowReportLayout = false;
        report.ExportToCsv(filename, options);
        return true;
    catch {
        return false;
See Also