Search code examples
asp.netvisual-studio-2008rdlcrdl

how to use rdl/rdlc in my asp.net project to generate a report?


I have a web application which will use MS ReportViewer. I have another team create a rdl file for me. I renamed the rdl to rdlc and added to my project. And I created a DataSet1.xsd to get the data needed by this rdlc. In my aspx page, I added a ReportViewer control, and set its report property to the rdlc file.

My questions are:

(1) Is it possible to edit the rdl/rdlc in vs2008? When I open it, it is opened as a xml file.

(2) how do I assign the dataset1 to the data source property of the ReportViewer control? When I right click the reportviewer, select the choose data sources, the dataset1 was not listed. Do I have to do this in the code behind?

(3) I got following error The report definition is not valid. Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' which cannot be upgraded.


Solution

  • Ans..

    1. Yes it is possible to edit rdlc report in vs2008. I don`t know about rdl.
    2. See this link for step by step solution for 2nd problem.
    3. I think this problem is due to wrong conversation from rdl to rdlc. Please follow the step as specified in this link.