Solved

How to call or run sql server reporting services 2005 reports from asp.net web form button

Posted on 2008-10-14
4
759 Views
Last Modified: 2012-05-05
Hi,
I have created SQL SERVER REPORTING SERVICES 2005 reports in my asp.net 2005 application. How can I run these reports from the button click events? Should I use a report viewer control? How can I pass the parameter to the report as a criteria? Thanks
0
Comment
Question by:fycert55
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 20

Accepted Solution

by:
informaniac earned 250 total points
ID: 22718202
Once reports are deployed on the report server, just call them like this

http://ServerName/ReportFolder/ReportName¶m1=value
0
 
LVL 13

Assisted Solution

by:sm394
sm394 earned 250 total points
ID: 22718962
IN code behind on click event set the ReportViewer properties
 // set processing mode to remote
        ReportViewer1.ProcessingMode = ProcessingMode.Remote;
        // specify report URL
        // replace localhost with server name if needed
        ReportViewer1.ServerReport.ReportServerUrl = new Uri(@"http://localhost/reportserver");
        // specify report path
        ReportViewer1.ServerReport.ReportPath = @"/dir/" + "reportname";

hope that helps
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question