Enter variable in Viewer

Stimulsoft Reports.WPF discussion
Post Reply
koraykazgan
Posts: 16
Joined: Tue Feb 01, 2011 4:29 am
Location: Germany

Enter variable in Viewer

Post by koraykazgan »

Hi guys,

I have designed a report with Reports.WPF, bound it to a SQL Data Source and added a variable to the query (I also checked the option 'request by user'). In the designer, if I switch to preview, I am asked to enter a value for the variable, and the report is filtered. But if I open the report in viewer, the report is empty and the variable field is not shown.

Is there a way to force the user to enter a value, when viewing the report in viewer?

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

Enter variable in Viewer

Post by Alex K. »

Hello,

We couldn't reproduce this bug. Could you explain your issue in more details?
Also please send us a sample project which reproduces the problem.

Thank you.
koraykazgan
Posts: 16
Joined: Tue Feb 01, 2011 4:29 am
Location: Germany

Enter variable in Viewer

Post by koraykazgan »

Hi again,

thanks for your reply. We assume that you have opened the viewer by calling report.ShowWithWpf(). If you do, the filter is shown. But we are using the StiWpfViewerControl and setting the report by code like:

Code: Select all

var report = new StiReport();
report.Load(@"C:\\Report.mrt");
Viewer.Report = report;
And this is the xaml:

Code: Select all

    
        
    
When doing this, the view opens, but the filter is not shown. there is no option to filter the report.

As I said, if you do the following:

Code: Select all

report.ShowWithWpf();
the filter is shown in the viewer and you can filter the report. But we need to use StiWpfViewerControl. How can I get the Control to show the filter?

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

Enter variable in Viewer

Post by Alex K. »

Hello Koray,

Which version of Stimulsoft Reports.Wpf do you use?
Also please check the latest prerelease build.

Thank you.
koraykazgan
Posts: 16
Joined: Tue Feb 01, 2011 4:29 am
Location: Germany

Enter variable in Viewer

Post by koraykazgan »

Hi gusy,

in the latest version the problem is fixed.

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

Enter variable in Viewer

Post by Alex K. »

Hello,

Ok.
Let us know if you need any additional help.
Post Reply