简体   繁体   English

框架4.5.2中的Asp .Net Micrsosft Report Viewer问题

[英]Asp .Net Micrsosft Report Viewer Issue in framework 4.5.2

We recently migrated from framework 3.5 to framework 4.5.2. 我们最近从框架3.5迁移到框架4.5.2。 We use microsoft report viewer and .rdlc files in our reporting solution. 我们在报告解决方案中使用Microsoft Report Viewer和.rdlc文件。 The report viewer displays data just fine .However the inbuilt functionality Save as Excel(Export) breaks for records more than 8k. 报表查看器可以很好地显示数据。但是,内置功能“另存为Excel(导出)”会破坏8k以上的记录。 The browser just waits for 10 to 15 mins and goes to Internet Explorer cannot display the webpage. 浏览器仅等待10到15分钟,然后转到Internet Explorer无法显示该网页。 The same worked absolutely fine in framework 3.5 . 在框架3.5中,同样的效果也很好。 We use IIS7 in windows server 2008. The report viewer version is 10.0. 我们在Windows Server 2008中使用IIS7。报表查看器版本为10.0。

got it working at last after lot of attempts. 经过大量尝试,终于使它工作了。 I had to explicitly call the render method and write it to response object to make it working 我必须显式调用render方法并将其写入响应对象以使其正常工作

        Response.BinaryWrite(ReportViewer1.LocalReport.Render(
    "Excel", null, out mimeType, out encoding,
    out extension,
    out streamids, out warnings));

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM