简体   繁体   English

ASP.NET页上的Reporting Services呈现错误

[英]Reporting Services Rendering error on ASP.NET Page

I am trying to display reporting service elements in a web page as little 'widget' like elements, where when you click on one of the elements it takes you to the reporting services page that holds all of the data. 我试图将网页中的报告服务元素显示为类似于“小部件”的小部件,当您单击其中一个元素时,它将带您进入包含所有数据的报告服务页面。

This works on my machine, and when run on two other machines, however, it is not working on the development server or another developer's machine. 这可以在我的计算机上运行,​​但是在其他两台计算机上运行时,则不能在开发服务器或其他开发人员的计算机上运行。

It works in dev in Google chrome, but not in IE 7 or 8. The images/links work if you right click on them and select "open link", but they are not click-able as links, which pisses the business unit off. 它可以在Google chrome中的dev中工作,但不能在IE 7或8中工作。如果右键单击图像/链接并选择“打开链接”,则图像/链接将起作用,但不能单击它们作为链接,这会惹恼业务部门。

I would really appreciate some help on this. 我真的很感谢这方面的帮助。 Here is the information pertinent to what I am trying to do. 这是与我要执行的操作有关的信息。 URLs and such changed for obvious purposes. URL和此类更改的目的很明显。

  • .NET 3.5 = IIS 7 .NET 3.5 = IIS 7

This is the ASPX element as added on the page. 这是页面上添加的ASPX元素。

    <div style="width: 411px; float: left;">
       <a href="RenderReport.aspx/myreport.pdf" style="text-decoration: none;">
           <rsweb:ReportViewer ID="rptVwOriginatedFallout" runat="server" Font-Names="Verdana"
               Font-Size="8pt" InteractiveDeviceInfos="(Collection)" ProcessingMode="Remote"
               WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" ShowToolBar="False"
               Height="260px" SizeToReportContent="True" BorderStyle="None">
               <ServerReport ReportPath="/MyReport" ReportServerUrl="http://reportingserver/" />
           </rsweb:ReportViewer>
       </a>
   </div>

At the top of the page I have: 在页面顶部,我有:

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

In the web.config under assemblies I have: 在程序集下的web.config中,我有:

<add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

Under the httpHandlers I have: 在httpHandlers下,我有:

<add path="Reserved.ReportViewerWebControl.axd" verb="*" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />

I have tried placing the appropriate information under and running it in Integrated mode as well on the server, but that did not work either. 我尝试将适当的信息放在服务器上,并在集成模式下运行它,但是那也不起作用。

I think you need to look at what html is generated. 我认为您需要查看生成的html。 It may be the html is wacky enough to throw the browsers off. 可能是html古怪到足以使浏览器退出。 You may need to change the way you link it. 您可能需要更改链接方式。 Ie. 就是 remove the anchor tag & add a onclick javascript method to the outer div. 删除锚标记,并在外部div中添加onclick javascript方法。 couple that with changing the mouse cursor with css, it'll look like a link still. 结合使用css更改鼠标光标,它看起来仍然像一个链接。

Simon 西蒙

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

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