Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Parameters don't prompting with embedded report

$
0
0

Hi. We're developing a winforms application (VB, VS2010) using last version of CR for Visual Studio (13.0.5).

 

Every report in our app is embedded. All the reports have parameters for data filtering and visual feedback (parameters attached to some labels in the report). In the majority of the forms (operational forms) the reports are hard-wired at design time (i.e. the form's report viewer is associated to the report at design time); when those forms show their associated report at runtime, the report viewer pops up the crystal parameter window as expected: then the user enter some parameters and the report is displayed and filtered correctly.

 

The problem is that we're required to implement a generic form to show some of those reports (for executive decision making). I'm using a form with an empty report viewer and the idea is to programatically bind the required embedded report at runtime (I'm using a ReportDocument object to do this task). Although the reports are displayed correctly, the parameter window is not prompting and the data is not filtered.

 

Oddly when a report has parameters attached to labels (for visual feedback), then the parameter window is being displayed and just asks for those parameters and not for the rest of the filtering parameters! And when those visual parameters are also used as filtering parameters, the report is not filtering the results! For example: in a report with a "fiscal year" parameter, when we enter a "2012" value, the report correctly shows the associated label (FISCAL YEAR: 2012), but if that parameter is also being used in the selection formula, the report just ignores the value and keeps selecting the 2013 data (as we don't have 2012 data in our development database, the report should be blank in this case).

 

I really don't want to have to implement an individual form for each of these reports (for obvious reasons) and the users are comfortable with the crystal parameter window (so I would not like to have to develop a special form for each report parameters).

 

I hope anyone could help me with any ideas to work this out.

 

PS. The reports don't have saved data.

 

Thanks in advance,

Fernando.


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>