简体   繁体   English

ASp.net MVC与报告查看器?

[英]ASp.net MVC with Report Viewer?

How can i set up rdlc (report file,with Reprort viewer) on ASP.net MVC 2.0? 如何在ASP.net MVC 2.0上设置rdlc(报告文件,使用Reprort查看器)?

I have created rdlc file.. 我创建了rdlc文件..

And when i drag report viewer in the mvc page it shuffles and it doest not fit like what weve done in winform application / webform . 当我在mvc页面中拖动报表查看器时,它会随机播放,并且它不像我们在winform application / webform中所做的那样。 Even you create new My First MVC application Report viewer also distorted.I place the report viewer in a table and not still fit. 即使您创建了新的My First MVC应用程序,报表查看器也会失真。我将报表查看器放在一个表中,但仍然不适合。

I tried to create a webform that excluded in my mvc masterpage and the report viewer fits well. 我尝试创建一个在我的mvc母版页中排除的webform,并且报表查看器非常适合。

Whats should i do? 我该怎么办?

Thanks in regards.. 谢谢你...

The ReportViewer component is not intended to be used with ASP.NET MVC and is unsupported. ReportViewer组件不适用于ASP.NET MVC,也不受支持。 You may checkout this example . 你可以查看这个例子 You could have a standard WebForms page (not MVC) generate the report and then include it either with iframe inside your MVC application or have it generate the report as PDF which then could be embedded. 您可以使用标准WebForms页面(而不是MVC)生成报告,然后将其与iframe一起包含在MVC应用程序中,或者将其生成为PDF格式,然后嵌入。

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

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