Set Default export settings

Stimulsoft Reports.NET discussion
Post Reply
hodge42
Posts: 2
Joined: Thu Aug 29, 2013 1:56 pm

Set Default export settings

Post by hodge42 »

Hi There,

I need to be able to set the default export settings in the report viewer. I will need to be able to default things like the seperator, and file type when exporting as a CSV is this possible at all?

Thanks

Alex
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Set Default export settings

Post by Alex K. »

Hello,

Please try to use the following code:

Code: Select all

StiSettings.Load();
StiSettings.Set("StiCsvExportSetupForm", "Separator", "*");
StiSettings.Save();
Thank you.
hodge42
Posts: 2
Joined: Thu Aug 29, 2013 1:56 pm

Re: Set Default export settings

Post by hodge42 »

Hi thanks for the reply.

I have tried this code but doesnt seem to apply when I export the report. The separator will always defauly to ; even when I apply this code.

many thanks

Alex
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Set Default export settings

Post by Alex K. »

Hello,

Please try to check the last prerelease build.

Thank you.
Post Reply