New bug in 2011.2 with Data Source flag "Connect on Start"

Stimulsoft Reports.WPF discussion
hagena
Posts: 15
Joined: Thu Sep 22, 2011 2:59 am

New bug in 2011.2 with Data Source flag "Connect on Start"

Post by hagena »

Hi there,

the flag Connect on Start was disabled in a report created with Reports.WPF 2011.1 so no data was loaded from database until the user hit the submit button. Worked perfectly.
Now in the 2011.2 version the user can hit submit as often as he likes no data is loaded. But if the flag Connect on Start is enabled the data is loaded with no problems.

Hope you can fix that.
Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

New bug in 2011.2 with Data Source flag "Connect on Start"

Post by Alex K. »

Hello,

If you set the Connect on Start property to false, then you need to connect itself to the database in the event code.

Thank you.
hagena
Posts: 15
Joined: Thu Sep 22, 2011 2:59 am

New bug in 2011.2 with Data Source flag "Connect on Start"

Post by hagena »

Hi,

doesn't it connect when I press the submit button?

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

New bug in 2011.2 with Data Source flag "Connect on Start"

Post by Alex K. »

Hello,

Yes, this is the correct behavior. You need to set the connection yourself DataSource.Connect()

Thank you.
hagena
Posts: 15
Joined: Thu Sep 22, 2011 2:59 am

New bug in 2011.2 with Data Source flag "Connect on Start"

Post by hagena »

Hi,

1. Ok but how/where do I get access to the click event of the submit button?

2. Why did you change the behavior in 2011.2 in comparison to 2011.1?

Thanks.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

New bug in 2011.2 with Data Source flag "Connect on Start"

Post by Jan »

Hello,

This problem is result of fixing bug in previous version. By default ConnectOnStart property can't changed automatically from report engine. New behavior is correct.

We have added new static property Stimulsoft.Report.StiOptions.Dictionary.EnableConnectOnStartOnSecondPass to solve this problem. Please set this property to true before report rendering. Changes will be available in build from today. Changes from today have 2011.2.1100 version and contains only fixes for release version.

Thank you.
hagena
Posts: 15
Joined: Thu Sep 22, 2011 2:59 am

New bug in 2011.2 with Data Source flag "Connect on Start"

Post by hagena »

Ok thank you we'll check on that.

Thanks.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

New bug in 2011.2 with Data Source flag "Connect on Start"

Post by Andrew »

Hello,

Ok! Please let us know about the result.

Thank you.
hagena
Posts: 15
Joined: Thu Sep 22, 2011 2:59 am

New bug in 2011.2 with Data Source flag "Connect on Start"

Post by hagena »

Morning,

I replaced the files with your new ones from yesterdays version Reports.WPF 2011.2.1100.0 .
Result:
The error of compilation is found in the 'Report' report:
"StiOptions.Dictionary" has no definition for "EnableConnectOnStartOnSecondPass".
Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

New bug in 2011.2 with Data Source flag "Connect on Start"

Post by HighAley »

Hello.
hagena wrote:I replaced the files with your new ones from yesterdays version Reports.WPF 2011.2.1100.0 .
Result:
The error of compilation is found in the 'Report' report:
"StiOptions.Dictionary" has no definition for "EnableConnectOnStartOnSecondPass".
Did you update assemblies in GAC?

Thank you.
Post Reply