Page 1 of 1

Set command timeout programatically?

Posted: Mon Jan 07, 2019 11:10 pm
by TestBoy
I see command timeout in the properties of the datasource and I even see it in the debugger but I cannot figure out how to set it.
I suspect this property is not exposed for us to be able to set from code?
This isn't a really big deal because I can set it in the report but more of a curiosity question.

Re: Set command timeout programatically?

Posted: Tue Jan 08, 2019 8:36 am
by Lech Kulikowski
Hello,

You can use the following code:
((StiSqlSource)report.Dictionary.DataSources["DataSourceName"]).CommandTimeout = yourValue;

Thank you.

Re: Set command timeout programatically?

Posted: Thu Jan 10, 2019 3:29 am
by TestBoy
Hey, that's neat.
Thanks.

Re: Set command timeout programatically?

Posted: Thu Jan 10, 2019 1:08 pm
by Lech Kulikowski
Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.