Solved

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

Posted on 2008-10-14
4
758 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 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