none
Rendering ReportViewer RRS feed

  • Question

  • Hello everyone,

    I have the following code:

    ReportViewer1.LocalReport.ReportEmbeddedResource = "Report.rdlc";
     this.ReportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WebForms.ReportDataSource("DataSet1", DTO1));
    ReportViewer1.LocalReport.DataBind();
    this.ReportViewer1.LocalReport.Refresh(); 

    So I created an aspx page where I put this code in codebehind to test the ReportViewer, but the reportviewer isnt rendered. The report (rdlc file) itself isnt in the same project. It is within a class library project. So I used Namespace.Map.Report.rdlc, but I dont know for sure if that is correct.

    Any ideas what I need to do?

    Greetings,

    Spacelama

    Tuesday, October 9, 2012 6:31 PM