Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. SSRS Deployment Support

SSRS Deployment Support

Scheduled Pinned Locked Moved ASP.NET
sysadmintutorialcsharpasp-netsql-server
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    siddisagar
    wrote on last edited by
    #1

    Hi Team, I am having SSRS project. I have few doubts 1. How to call my SSRs report on click of button in ASP.NET website. 2. How to give connection string when I deploy my application in Test/ Production Server please guide me

    A S 2 Replies Last reply
    0
    • S siddisagar

      Hi Team, I am having SSRS project. I have few doubts 1. How to call my SSRs report on click of button in ASP.NET website. 2. How to give connection string when I deploy my application in Test/ Production Server please guide me

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Hi Siddisagar,

      siddisagar wrote:

      1. How to call my SSRs report on click of button in ASP.NET website.

      Hope you have already designed the SSRS reports and hosted the same on IIS Server. Now you need to do the following steps . First : Add Microsoft.Reporting.WebForms namespace with your ASP.NET Web application . This contains methods and properties for the ReportViewer Web server control.

      <%@ Register Assembly="Microsoft.ReportViewer.WebForms Namespace="Microsoft.Reporting.WebForms" TagPrefix="SSRSWeb" %>

      Second : SSRS viewer assembly will add the ReportViewer control with your web application which you can use to featch the data from SSRS to your aspx page.

      Third : Add Button Click Code Behind For view the Reports

      SSRSViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
          SSRSViewer.ServerReport.ReportPath = "MyReports"; 
      SSRSViewer.ServerReport.ReportServerUrl = new Uri("http://localhost/ssrsreports"); 
      

      You are done !!

      siddisagar wrote:

      2. How to give connection string when I deploy my application in Test/ Production Server

      You are talking for ASP.NET web application connection string or what ? I guess you need to change only in config file. Nothing else.

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      1 Reply Last reply
      0
      • S siddisagar

        Hi Team, I am having SSRS project. I have few doubts 1. How to call my SSRs report on click of button in ASP.NET website. 2. How to give connection string when I deploy my application in Test/ Production Server please guide me

        S Offline
        S Offline
        sashidhar
        wrote on last edited by
        #3

        siddisagar wrote:

        How to call my SSRs report on click of button in ASP.NET website

        Use Report Viewer and display tha report in reportViewer..! here is the sample code which i done previously

                 DataView dv = new DataView();            
                //Accessing the Method From Class File            
                dv = dAccess.GetDataView();
               //Calling the Method
                ReportDisplay(dv);
        
           private void ReportDisplay(DataView dv)
                {
                // Set RDL file
                reportViewer.LocalReport.ReportPath = "Report.rdlc";
                // Supply data corresponding to each report data source.
                reportViewer.LocalReport.DataSources.Add(new      ReportDataSource("AdventureWorksDataSet\_CreditCard", dv));
                 // Process and render the report
                 reportViewer.LocalReport.Refresh();
        

        }

        If You have Any More Doubts in ssrs reports Feel Free to ask me..!

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups