VisualStudio Report Viewer不在Chrome中呈现报表正文 [英] VisualStudio Report Viewer not rendering report body in Chrome

查看:228
本文介绍了VisualStudio Report Viewer不在Chrome中呈现报表正文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Chrome不支持 - http:// msdn .microsoft.com / en-us / library / ms156511.aspx 为报表查看器。



这里的解决方案并不适合我
不幸的是, Google Chrome中的ReportViewer问题

在我们的案例中,报告主体是空白的。我遇到了解决方案来报告工具栏中的高度问题和失真问题,但在我的情况下,我还没有到达那个阶段。



当我导航到Chrome中的报表管理器时,我可以看到我的报告[它们并不完美,但至少显示报表正文]

  http://localhost/Reports_SQLSERVER2008/Pages/Report.aspx? [剪辑] 

我有这个问题有两个问题,我希望有人能够解决一些问题


  1. 为什么报表管理器中的报表查看器在Chrome中呈现报表正文,而VS 2010报表查看器控件却不支持。 [引导我相信查看器可以在Chrome中呈现,因此它可能是我可以改变的东西]。

  2. 是否可以扩展报表查看器以至少在Chrome中呈现正文。

所有其他浏览器都可以。
它是一个使用SQL Server 2008上的VS 2010版报表查看器的ASP.Net 4.0网页表单应用程序[在短时间内转向2008 R2]。



<我也处于这样的阶段,即解决这个问题所需的努力可能不合理。我希望可能会有其他问题,如参数选择等。我希望听到您的想法。



预先感谢,



Rgds,

  • 是为我们工作的修复,但是针对我们的实现。



    我们将ReportViewer包裹在用户控件中,并且此报告查看器用户控件用于2个位置我们的Asp.Net应用程序。
    $ b


    1. 在基本报告页面上

    2. 在Web部件[Dashboard]页。每个Web部件都包含一个Report Viewer用户控件。

    在报表查看器用户控件的标记中,我们设置报表查看器的高度以像素为单位的大量。即1200px。
    报告正文在报告页面和仪表板页面上在Chrome中呈现。



    由于报告页面一次显示1个报告,所以高度设置不是一个问题

    在仪表板中,我们已经公开了包含报告路径的webpart的个性化属性,它允许我们加载我们需要的任何报告。
    我们还公开了一个新的属性,将报告的密钥存储在个性化框架中,并依次设置用户所需的报告查看器的高度。



    Liam

    I'm aware that Chrome is not supported - http://msdn.microsoft.com/en-us/library/ms156511.aspx for the Report Viewer.

    The solution here has not worked for me ReportViewer problem in google chrome unfortunately

    In our case the report body is blank. I have come across solutions to report height issues and distortion issues in the tool bar but in my case I have yet to get to that stage.

    When I navigate to the Report Manager in Chrome I can see my reports [They are not perfect but are at least showing the report body]

    http://localhost/Reports_SQLSERVER2008/Pages/Report.aspx? [clipped]
    

    I have 2 questions wrt this issue and I hope someone will be able to shed some light on them.

    1. Why would the report viewer in the Report Manager render the report body in Chrome while the VS 2010 Report viewer control will not. [Leads me to believe that the Viewer can render in Chrome so it may be something I can change].
    2. Is it possible to extend the Report Viewer to at least render the body in Chrome.

    All other browsers are fine. Its an ASP.Net 4.0 web form app using the VS 2010 version of the report viewer on SQL Server 2008 [Moving to 2008 R2 in a short while].

    I'm at the stage also where it may be the case that the effort required to resolve this issue cannot be justified. I expect there may be other problems such as parameter selection etc. I'd like to hear your thoughts.

    Thanks in advance,

    Rgds,

    Liam

    解决方案

    This is the fix that worked for us but is specific to our implementation.

    We have the ReportViewer wrapped in a user control and this report viewer user control is used in 2 places in our Asp.Net app.

    1. On a basic Reports page
    2. On a webparts [Dashboard] page. Each web part contains a Report Viewer user control.

    In the markup of the Report Viewer user control we set the height of the Report Viewer to a large number in Pixels. i.e. 1200px. The report body renders in Chrome on the reports page and on our dashboard page.

    As the reports page displays 1 report at a time the height setting is not an issue

    In the dashboard we already expose a personalisation property of the webpart containing the report path which allows us to load what ever report we require. We also expose a new property to store the hieght of the report in the personalisation framework and this in turn sets the height of the report viewer as required by the user.

    Liam

    这篇关于VisualStudio Report Viewer不在Chrome中呈现报表正文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆