How can I set this option in code?

Stimulsoft Reports.WPF discussion
Post Reply
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

How can I set this option in code?

Post by PJoyeux »

Hi,

I am looking for a way to set the following option via code:
Bild 3.png
Bild 3.png (44.35 KiB) Viewed 2080 times
I have found the class "StiDesignerInfo" which has the property "RunDesignerAfterInsert" but I don't know how to access and set this property...

Can you help me?

Cheers,
Pascal
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How can I set this option in code?

Post by HighAley »

Hello.

There is no static option for this setting.

You can do it with next code:

Code: Select all

StiSettings.Load();
StiSettings.Set("StiDesigner", "RunDesignerAfterInsert", true);
StiSettings.Save();
Thank you.
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: How can I set this option in code?

Post by PJoyeux »

Worked, thank you!

Didn't know about these non-static settings...

Cheers,
Pascal
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How can I set this option in code?

Post by HighAley »

Hello.

We are glad to help you.
You could set any settings this way, if you know its name.

Thank you.
Post Reply