Reload a report with parameters

Stimulsoft Reports.NET discussion
Post Reply
amarinelli
Posts: 7
Joined: Fri Jun 11, 2010 7:08 am
Location: Italy

Reload a report with parameters

Post 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
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Reload a report with parameters

Post 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.
amarinelli
Posts: 7
Joined: Fri Jun 11, 2010 7:08 am
Location: Italy

Reload a report with parameters

Post by amarinelli »

thanks for your reply, i will go through the second way...
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Reload a report with parameters

Post by Andrew »

Hello,

Ok!

Thank you.
Post Reply