locked
RDLC LOCAL report in report viewer in asp.net mvc without report server and without iframe. RRS feed

  • Question

  • Hi

    I am planning to show rdlc report in report viewer using web form (.aspx) page. But i do not want to use iframe to show report. I found most of the solutions on internet using iframe. 

    I used following code and its working fine , showing report properly without parameters. It uses iframe. Could you please suggest other solution to show report without using iframe. I do not want to render content as pdf on browser page. Please suggest change. Thanks in advance.

    <h2>Index</h2>
    
    <h4> Customer Details</h4>
    
    <script type="text/javascript">
        function GenerateReport() {
           
            document.getElementById("myReport").src = "../Reports/ReportViewer.aspx?ReportID=CustomersListReport"
        }
    </script>
    
    <div>
        <iframe id="myReport" width="100%" height="800px"></iframe>
    </div>
    <div>
        <input type="button" id="btnGenerate" value="Generate Report" onclick="GenerateReport();" />
    </div>
    
    <h2>@Html.ActionLink("Customer List","Details")</h2>
    



    I am using following technologies

    Visual Studio 2013

    .net framework 4.5

    IIS 7.5

    Windows 7 [ OS]

    Asp.Net MVC  5.1

    <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral,

    PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagPrefix="rsweb" %>



    Wednesday, July 30, 2014 5:28 AM

Answers

  • I'd ask over here.

    Microsoft ASP.Net MVC forum

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Proposed as answer by Just Karl Friday, August 1, 2014 4:08 PM
    • Marked as answer by Just Karl Friday, August 8, 2014 4:04 PM
    Friday, August 1, 2014 3:50 AM