Page 1 of 1

Export Formats for CSV File

Posted: Wed Nov 11, 2015 10:29 pm
by luis073094
I'm trying to export a report in CSV format via Code, but i can't find the function to set : "Bands Filter: Data and Headers/Footers or All bands".
This propertys exists in the Report Viewer, but i cant't find this property in code :cry:
I've been created this object:

StiCsvExportSettings config = new StiCsvExportSettings();

Thanks :D

Re: Export Formats for CSV File

Posted: Thu Nov 12, 2015 7:43 am
by HighAley
Hello.

The name of the export option incode is

Code: Select all

StiCsvExportSettings.DataExportMode
You could set any value from StiDataExportMode enum.

Thank you.

Re: Export Formats for CSV File

Posted: Thu Nov 12, 2015 1:39 pm
by luis073094
Hey man! Can you give me a example to use this? Thaks for your answer :)

Re: Export Formats for CSV File

Posted: Fri Nov 13, 2015 9:41 am
by HighAley
Hello.

Here is a sample code:

Code: Select all

report.Render();
StiCsvExportSettings config = new StiCsvExportSettings();
config.DataExportMode = StiDataExportMode.DataAndHeadersFooters;
report.ExportDocument(StiExportFormat.Csv, filename, config);
Let us know if you need additional help.

Thank you.