Monday, March 19, 2012

How to set the ReportPath for the reportviewer control

In my solution I've got 2 projects. ABCWeb is my website and ABCReports is a Report Server project.

In ABCWeb I have an aspx page that has a single reportviewer control on it which is intended to display the various reports that are in ABCReports . I am not using the Reports Server. I just simply want to set the property of the reportviewer control under LocalReport.ReportPath to the location of the report in ABCReports .

I keep getting this error no matter how I try to reference it.

  • An error occurred during local report processing.
  • The report definition for report '/ABCReports/Reports/rptNoticeOfDecision.rdl' has not been specified
  • Could not find a part of the path 'C:\ABCReports\Reports\rptNoticeOfDecision.rdl'.

    what am I doing wrong

    try something like this

    RVcl.LocalReport.ReportPath ="ABCReports/Reports/rptNoticeOfDecision.rdl";

    -remove the first /

    I assume ABCreports is a sub folder of the application root

  • No comments:

    Post a Comment