banner



How To Create Rdl Report In Asp Net

  • Remove From My Forums

 locked

Build Report using asp.net with .RDL template and report viewer

  • Question

  • User1174454301 posted

    hi i am trying to build a report using VS 2005 ,i have a sample .rdl file ,i used report viewer and in code page i gave the fallowing details

    reportviewer1.localreport.reportpath=server.mappath("`/name.rdl")

    reportviewer1.localreport.refresh();

    i amgetting the fallowing error can some one please help me out

    An error occurred during local report processing. The definition of the report 'Main Report' is invalid. 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.

Answers

  • User-8554525 posted

    RDLC is the client report file. RDL is a server report and you are trying to render the server report as a client report -->Local report.  To access the server report in a web application you need to do this. http://forums.asp.net/t/1619425.aspx

    What exactly are you trying to do ??

    • Marked as answer by Thursday, October 7, 2021 12:00 AM
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
  • User1471008070 posted

    Hi,

    Of course, you could convert .RDL report to .RDLC report, as both RDL and RDLC are defined by an XML schema called the Report Definition Language. The schema for both file formats is identical. If you want to convert a .RDL file to .RDLC format, you must manually replace the data source and query information in the report definition with data constructs provided in your application. For detailed steps please follow these:

    1. Rename the .rdl file to use the .rdlc file extension.
    2. In Visual Studio, open the solution or project that will contain the report.
    3. Create or add the dataset that defines the data you want to use to your projector solution. For more information, see Creating Data Sources for a Report.
    4. On the Project menu, click Add Existing Item and then select the .rdlc file that you created in the first step.
    5. In the project, open the form or Web page that will contain the report.
    6. From the Toolbox, in the Data group, drag a ReportViewer control onto the form or Web page.
    7. In the ReportViewer Tasks smart tags panel, in Choose Reports, select the .rdlc file to use with the control.
    8. In the ReportViewer Tasks smart tags panel, in Choose Data Sources, select the dataset you want to use. The dataset object, binding source object, and table object will appear at the bottom of the workspace. For more information about updating data source references, see Updating and Rebinding Data Source References (Visual Studio Report Designer).

    Save all files, and then build or deploy the project to verify that the report contains the data you expect.

    Thanks,

    Challen Fu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM

How To Create Rdl Report In Asp Net

Source: https://forums.asp.net/t/1623631.aspx?Build+Report+using+asp+net+with+RDL+template+and+report+viewer

Posted by: bryantvainhaver.blogspot.com

0 Response to "How To Create Rdl Report In Asp Net"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel