Page 1 of 1

Reload a report with parameters

Posted: Mon Jun 27, 2011 10:42 am
by amarinelli
A lot of reports i'm using in my winform app have a popup form where the user can select some filters and then press ok.

actually i've inserted a new button in the preview form toolbar for refreshing the report with the following code:

Code: Select all


reportPreviewBox.Report.Render(false);
reportPreviewBox.SaveConfig();
reportPreviewBox.Refresh();
reportPreviewBox.LoadConfig();

this button is correctly relaunching the filter form too, but input fields are totally blank (like in first launch).

Is there any way to mantain the user values through report relaunch/refresh?

thanks in advance


Stimulsoft .NET 2009.1

Reload a report with parameters

Posted: Tue Jun 28, 2011 2:08 pm
by Andrew
Hello,

The best way is to design your own input form not in our reporting tool.
If this way is not good for you, only the second way remains: before update of the report, run through all the components of the form and save their values, and after the updade to restore the values ​​of the components of the form.

Thank you.

Reload a report with parameters

Posted: Tue Jul 05, 2011 9:54 am
by amarinelli
thanks for your reply, i will go through the second way...

Reload a report with parameters

Posted: Tue Jul 05, 2011 10:10 pm
by Andrew
Hello,

Ok!

Thank you.