views:

11

answers:

1

I have an SSRS report that's called up by a page with an ASP.Net ReportViewer object. The report takes parameters for filtering. Right now when the page is first called up, there are default values in the parameters and the viewer just takes off and renders a report with those settings. I thought this would be a nice time-saver, but my client complains that this takes several seconds, so what we want to do now is have it just wait until I hit "View Report" before it tries to render anything.

What's the best approach? Not set defaults to the param's? Set the ShowReportBody to false? Something else? Seems like this should be simple.

A: 

Removing the default should will make the report not render. I think that's your only option. And also the simplest.

If some clients like the old behavior, you could provide defaults programatically for certain users. (IE, store a browser cookie that tells your page to provide defaults if they check a "save defaults" checkbox.)

Tim Coker
I did set the ShowReportBody to false in the aspx at design-time, then I set it to True programmatically in the Page_Load on postbacks. Got that idea from here: http://stackoverflow.com/questions/1573926/how-can-i-trap-view-report-in-reportviewer-webforms-for-ssrs
Mike at KBS