csv export
csv export
G'day,
How can I set default separator and "Skip Column Headers" option during runtime for "Export To CSV" feature?
Best regards.
How can I set default separator and "Skip Column Headers" option during runtime for "Export To CSV" feature?
Best regards.
Re: csv export
Hello,
You can use this code:
Thank you.
You can use this code:
Code: Select all
viewer.addEventListener(StiViewerEvent.START_EXPORT, onStartExport);
...
private function onStartExport(event: StiViewerEvent): void
{
if (event.exportSettings.exportFormat == StiExportFormat.Csv)
{
StiCsvExportSettings(event.exportSettings).separator = ",";
StiCsvExportSettings(event.exportSettings).skipColumnHeaders = true;
}
}
Re: csv export
Thank you. Works like magic.
Re: csv export
Hello,
We always glad to help you!
Thank you.
We always glad to help you!
Thank you.
Re: csv export
Hi!
Tell me please, how could I set StiCsvExportSettings (for example SkipColumnHeaders = true) in a Designer (in mrt file)?
Tell me please, how could I set StiCsvExportSettings (for example SkipColumnHeaders = true) in a Designer (in mrt file)?
Re: csv export
Hello,
You can use this code:
This should work for the preview of the report in the report designer.
Thank you.
You can use this code:
Code: Select all
designer.previewControl.addEventListener(StiViewerEvent.START_EXPORT, onStartExport);
...
private function onStartExport(event: StiViewerEvent): void
{
if (event.exportSettings.exportFormat == StiExportFormat.Csv)
{
StiCsvExportSettings(event.exportSettings).skipColumnHeaders = true;
}
}
Thank you.
Re: csv export
Thank you!
Re: csv export
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.