views:

246

answers:

3

What is the best way to launch reporting services reports from .Net code? One method would be to dynamically build a URL and launch a browser. Something like this:

http://server/ReportServer/Pages/ReportViewer.aspx?%2fReport+Directory%2fReport%20Name&FirstParameter=1,2,3&SecondParameter=8/30/2009&rs%3aCommand=Render

I don't like how it creates a dependency on the specific URL--especially report parameters which are very likely to change. Is there a better way?

The reports I want to link to are in several reporting services projects hosted on one (eventually two) servers.

A: 

Can you just use System.Diagnostics.Process start the above url?

Preet Sangha
+1  A: 

Integrating Reporting Services into Applications give you the 3 options

As well as URL Access, you can either call the RS web service using SOAP or use the ReportViewer control.

Either way, you have a dependency on a URL (but that's how web services work), unless you use the ReportViewer control in local processing mode.

gbn
A: 

If you have problems launching reporting services, you can checkout reporting software and you will be able to find helpful tips for your .Net code. When I was a newbie in .Net programming, this site has guided me to creating comprehensive source code reports.

mousescroll