Hello,
Most of our reports start with displaying a dialog to the user where he can input some data. We use that data as parameters in a query to a sqlServer-Database. With the result of the query the report is filled.
In order to do so, the ConnectOnStart property for the report is set to false. (see Screenshot ).
After the user confirms his inputs by pressing the OK-Button, we call the Connect-Method in the Click-Event-Handler of the button. (see Screenshot )
In past versions the result was displayed in the databands of the report. In the current version (2019.2.3) this does not work anymore. The report stays empty.
Can you help us with this problem? Is this a bug or by design? Is there a workaround available?
Best regards,
Malfunctioning ConnectOnStart property
-
- Posts: 4
- Joined: Tue Apr 09, 2019 8:20 am
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Malfunctioning ConnectOnStart property
Hello,
Please try to use the following code:
DataSourceName.ConnectOnStart = true;
DataSourceName.Connect();
Thank you.
Please try to use the following code:
DataSourceName.ConnectOnStart = true;
DataSourceName.Connect();
Thank you.