Skip to main content
A newer version of this page is available. .

CsvExportOptions.FollowReportLayout Property

Specifies if CSV export should follow the report layout.

Namespace: DevExpress.XtraPrinting

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

Declaration

[Browsable(false)]
[DefaultValue(true)]
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
.Csv.FollowReportLayout
WPF Controls ExportOptionsContainer
.Csv.FollowReportLayout

Remarks

Set FollowReportLayout to true to add a column to a CSV export file for each space between report controls.

csv-use-custom-separator-false

Example

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

using DevExpress.XtraPrinting;

    static class Program {
        static void Main() {
          var report1 = new XtraReport1();
          CsvExportOptions.FollowReportLayout = false;
          report1.ExportToCsv(".\\report1.csv");
          //...

        }
    }
See Also