IE 10中的水晶报告 [英] crystal report in IE 10
问题描述
大家好,
使用ASP.NET Crystal Reports Viewer在IE 10中无法正确呈现报表。我只看到竖条。如果我在开发者工具中切换到IE 9模式,报告看起来很好。如果你知道这个,请分享给我们
谢谢
第一个:
CrystalReportViewer1.ReportSource
添加:
System.Web.HttpBrowserCapabilities vBrowser = Request.Browser;
if (vBrowser.Type == IE10&& vBrowser.MajorVersion > 9 )
回复.Write( 。);
从另一个论坛得到这个,不能相信我的眼睛有效。
另外请注意,如果您使用Page_Init重新渲染页面,则必须在此处不加载,只有当您在报告中加载按钮时才会加载...
添加的代码块[/ edit]
看起来像IE10& Crystal报告尚不支持Windows8,此处: http://scn.sap.com/thread/3233406 [< a href =http://scn.sap.com/thread/3233406target =_ blanktitle =New Window> ^ ]
将此添加到包含报告查看器的页面的head部分:
< meta http-equiv = X-UA兼容 content = IE = 9,chrome = 1 >
这将强制IE10自动将您的页面呈现为IE9以使您的报告正常工作。 HTH
hi all,
Reports do not render properly in IE 10 using ASP.NET Crystal Reports Viewer. All I see is vertical bars. If I switch to IE 9 mode in Developer tools, report looks fine.kindly share to us if u know abt this
Thanks
After the first :
CrystalReportViewer1.ReportSource
Add :
System.Web.HttpBrowserCapabilities vBrowser = Request.Browser; if (vBrowser.Type == "IE10" && vBrowser.MajorVersion > 9) Response.Write(".");
Got this from another forum and could not believe my eyes it worked.
Also note if you re-render the page with Page_Init, must it not be loaded here, only when the Only on your reports Load button for example..
[edit]Code block added[/edit]
Looks like IE10 & Windows8 are yet not supported by Crystal reports, here: http://scn.sap.com/thread/3233406[^]
Add this to the head section of your page that contains the report viewer:
<meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1" >
This will force IE10 to render your page as IE9 automatically to get your report working. HTH
这篇关于IE 10中的水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!