Changing Default Export Settings

Stimulsoft Reports.NET discussion
Post Reply
Sishir Jain
Posts: 3
Joined: Fri Aug 17, 2007 4:34 am
Location: India

Changing Default Export Settings

Post by Sishir Jain »

We want to export our report in Rtf format. In the export settings window, Table mode is the default, but we want Frame as the dafault mode.

Can we get instance of StiRtfExportSetupForm to change the dafault mode as Frame. So whenever user opens this dialog, he/she will see Frame radio button selected.


Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Changing Default Export Settings

Post by Guest »

Hello,

Every time when you install option for exports, they are stored in the file(c:\Documents and Settings\%UserName%\Local Settings\Application Data\Stimulsoft\Stimulsoft.Report.settings) and become the default optionы. There is no need for additional steps to set the default option.

Thank you.
Sishir Jain
Posts: 3
Joined: Fri Aug 17, 2007 4:34 am
Location: India

Changing Default Export Settings

Post by Sishir Jain »

Thanks.
When is this config file created and how can we change its options ?
Can we do it just once during installation of our product ?

Regards,
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Changing Default Export Settings

Post by Guest »

This file is created when the StimulReport runs at the first time.

For your customers, you can set your options for this file and distribute it with your application.

But exists better way: you can set option from code of your application:

Code: Select all

StiSettings.Set("StiRtfExportSetupForm", "Frame", true);
StiSettings.Save();
...
report.Show();

In this case if open rtf export settings window, Frame always will be have a true value.

Thank you.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Changing Default Export Settings

Post by Vital »

There correct code is:

Code: Select all

StiSettings.Load();
StiSettings.Set("StiRtfExportSetupForm", "Frame", true);
StiSettings.Save();
Thank you.
Christopher Lloyd
Posts: 23
Joined: Wed Apr 13, 2011 7:37 am
Location: UK

Changing Default Export Settings

Post by Christopher Lloyd »

I am also experiencing difficulties in setting default options for exports. I simply want to to set of couple of default options like excel export - data only, csv export - comma as delimiter etc but I cannot find which properties I need to set. How do I find out what forms I need to reference in my code?

I have also noticed that when a user selects current page only for an export, they still get all pages.

Again I have tried to use the email button but my users cannot click on it as it is "hidden" behind the save button.

Chris L

Post Reply