By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,894 Members | 2,002 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,894 IT Pros & Developers. It's quick & easy.

using HttpWebRequest to view Reporting Services reports

P: n/a
I am using HttpWebRequest to view my reports (see code below). However,
I need to be able to pass parameters to the report in the code, and if
possible show graphs as well. Does anybody know how to do this?

protected void Page_Load(object sender, EventArgs e)


// Create a request for the URL.

WebRequest request =

// If required by the server, set the credentials.

request.Credentials = CredentialCache.DefaultCredentials;

// Get the response.

HttpWebResponse response = (HttpWebResponse)request.GetResponse();

// Display the status.


// Get the stream containing content returned by the server.

Stream dataStream = response.GetResponseStream();

// Open the stream using a StreamReader for easy access.

StreamReader reader = new StreamReader(dataStream);

// Read the content.

string responseFromServer = reader.ReadToEnd();

// Display the content.


// Cleanup the streams and the response.





*** Sent via Developersdex ***
Sep 28 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.