Page 1 of 1

Changing Default Export Settings

Posted: Fri Aug 17, 2007 4:47 am
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.



Changing Default Export Settings

Posted: Fri Aug 17, 2007 7:52 am
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.

Changing Default Export Settings

Posted: Fri Aug 17, 2007 8:52 am
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,

Changing Default Export Settings

Posted: Fri Aug 17, 2007 9:54 am
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.

Changing Default Export Settings

Posted: Sat Aug 18, 2007 12:00 am
by Vital
There correct code is:

Code: Select all

StiSettings.Load();
StiSettings.Set("StiRtfExportSetupForm", "Frame", true);
StiSettings.Save();
Thank you.

Changing Default Export Settings

Posted: Tue May 24, 2011 10:48 am
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