Page 1 of 1

Enter variable in Viewer

Posted: Fri Feb 04, 2011 5:59 am
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

Enter variable in Viewer

Posted: Fri Feb 04, 2011 8:13 am
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.

Enter variable in Viewer

Posted: Fri Mar 04, 2011 4:59 am
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

Enter variable in Viewer

Posted: Fri Mar 04, 2011 8:06 am
by Alex K.
Hello Koray,

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

Thank you.

Enter variable in Viewer

Posted: Tue Apr 05, 2011 8:02 am
by koraykazgan
Hi gusy,

in the latest version the problem is fixed.

Thanks for help,
Koray

Enter variable in Viewer

Posted: Tue Apr 05, 2011 8:20 am
by Alex K.
Hello,

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