Click here to Skip to main content
15,909,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi i am new to ssrs reporting. Actually i was install BIDS , i created a ssrs report. but i want that report to show in windows form on vs2008.it is possible?

and
it is possible ssrs report by using BIDS in vs2010 in windows from help me?
Posted
Comments
[no name] 21-Jul-13 7:16am    
http://www.google.com/search?q=ssrs+windows+form++visual+studio+2008

1 solution

In window app and web base app, it is the same.

Let try:
C#
string Server = "http://hn-sd-0100-wk/ReportServer_SQL2008R2";//ReportServerTextBox.Text;
            string reportProject = "/ReportProjectContact/";
            string reportName = "ReportContact";
            reportViewer1.ProcessingMode = ProcessingMode.Remote;
            ServerReport serverReport;
            serverReport = reportViewer1.ServerReport;
            serverReport.ReportServerUrl = new Uri(Server);
            serverReport.ReportPath = reportProject + reportName; //FolderTextBox.Text + ReportNameTextBox1.Text;
               
            // You can add Parameter if need
            ReportParameter[] rp = new ReportParameter[1];
            rp[0] = new ReportParameter("OrderID", txtOrderID.Text);
            reportViewer1.ServerReport.SetParameters(rp);
            reportViewer1.RefreshReport();
 
Share this answer
 
Comments
Member 9846414 22-Jul-13 2:39am    
i am getting error at processingmode and serverreport for this we have to add any refrence or any header file help me..
Member 9846414 25-Jul-13 14:35pm    
thank u very much sir i got it
Anh Nguyen Trong 22-Jul-13 2:43am    
try this:
using Microsoft.Reporting.WinForms;
Member 9846414 22-Jul-13 3:22am    
i add reportviewer. errors has gone now thank u very much. but how to give report can u help me .in my project i seen i copy path like given below
C:\Users\rahul\Documents\Visual Studio 2008\Projects\Report Project5\Report Project5

in that project report1 buck up is there and report1 and report.rdl.data from these which one i have to choose can u help me plz.
Anh Nguyen Trong 22-Jul-13 4:11am    
you should choose report name as report1 and reportProject as "project report1"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900