locked
Error Binding rdlc report with report viewer control RRS feed

  • Question

  • User1557556235 posted

    Dears 

    My asp.net web page has report viewer contral . I am dynamically binding a rdlc report with report viewer . I did following steps

    1: created report viewer .

    2: Created a rdlc report with dataset . 

    3: my rdlc file is located in my solution\reports\test.rdlc

    so i simply give the path of my rdlc file into reprotViewer Control properties under LocalReprot ReportEmeddedResource  mysolution.TestFolder.Test.rdls

    when i run this web page it shows me always this error 

    • An error occurred during local report processing.
      • The report definition for report 'mysolution.TestFolder.Test.rdls' has not been specified

    please help 

    Monday, February 24, 2014 7:49 AM

Answers

  • User1140095199 posted

    Hi,

    so i simply give the path of my rdlc file into reprotViewer Control properties under LocalReprot ReportEmeddedResource  mysolution.TestFolder.Test.rdls

    when i run this web page it shows me always this error 

    • An error occurred during local report processing.
      • The report definition for report 'mysolution.TestFolder.Test.rdls' has not been specified

    I reproduced the Error. It is occuring because the ReportPath has not been specified.

    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="549px" Height="560px" OnDrillthrough="ReportViewer1_Drillthrough">
                <LocalReport ReportEmbeddedResource="TryOuts.Report1.rdlc" ReportPath="Report1.rdlc">
                    
                    <DataSources>
                        <rsweb:ReportDataSource DataSourceId="ObjectDataSource2" Name="DataSet1" />
                    </DataSources>
                </LocalReport>
            </rsweb:ReportViewer>

    Specify the ReportPath attribute. Refer the above Code. In my case it is.

    ReportPath="Report1.rdlc

    3: my rdlc file is located in my solution\reports\test.rdlc

    In your case I suppose it will be :

    ReportPath="reports\test.rdlc"

    Best Regards!

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, February 24, 2014 11:24 PM