Export Formats for CSV File

Stimulsoft Reports.NET discussion
Post Reply
luis073094
Posts: 8
Joined: Wed Nov 11, 2015 10:16 pm

Export Formats for CSV File

Post 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
Attachments
Sin título.png
Sin título.png (14.16 KiB) Viewed 1930 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export Formats for CSV File

Post 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.
luis073094
Posts: 8
Joined: Wed Nov 11, 2015 10:16 pm

Re: Export Formats for CSV File

Post by luis073094 »

Hey man! Can you give me a example to use this? Thaks for your answer :)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export Formats for CSV File

Post 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.
Post Reply