CrystalReportsViewer、Firefox,无工具栏
我已将 CrystalReportsViewer 嵌入到 asp.net c# 网页中,并且它在 IE 和 Chrome 中显示得很好(嗯,不是真正的“很好”,但你知道我的意思,它执行水晶报表“功能”)。
然而,在 Firefox 中,布局很混乱,工具栏完全消失。 这甚至不是渲染问题,html 根本就没有生成。
那么,有人知道如何在 Firefox 中呈现工具栏吗?
哦,这是 Crystal XI r2...我想...
在 .asp 模板中:-
<CR:CrystalReportViewer
ID="CrystalReportViewer"
runat="server"
ClientTarget="Uplevel"
AutoDataBind="true"
BackColor="#FFFFFF"
PageZoomFactor="100"
Style="border: 1px solid black"
DisplayBottomToolbar="True"
DisplayToolbar="True"
ReuseParameterValuesOnRefresh="true"
HasCrystalLogo="False"
HasToggleGroupTreeButton="False"
DisplayGroupTree="False"
/>
在页面加载中:-
SetDBLogonForReport([......]);
CrystalReportViewer.ReportSource = rpt;
CrystalReportViewer.EnableDatabaseLogonPrompt = false;
CrystalReportViewer.HasDrillUpButton = true;
CrystalReportViewer.HasExportButton = true;
CrystalReportViewer.HasGotoPageButton = true;
CrystalReportViewer.HasPageNavigationButtons = true;
CrystalReportViewer.HasPrintButton = true;
CrystalReportViewer.HasRefreshButton = true;
CrystalReportViewer.HasSearchButton = true;
CrystalReportViewer.HasToggleGroupTreeButton = false;
CrystalReportViewer.HasViewList = true;
CrystalReportViewer.HasZoomFactorList = true;
CrystalReportViewer.AppRelativeTemplateSourceDirectory = @"~/Crystal/";
SetupParametersForReport([..........]);
抱歉,我不得不稍微缩小它。
在 chrome 上查看工具栏源是通过如下链接生成的:- http://我的*dev*主机/aspnet_client/system_web/4_0_30319/crystalreportviewers115/images/toolbar/first.gif 这些链接在所有浏览器中都可以正常工作,因此我认为路径是正确的。
我正在尝试在.Net 4.0 上运行。
I've embedded the CrystalReportsViewer in an asp.net c# web page, and it displays nicely (well, not really "nicely", but you know what I mean, it does the crystal reports "thing") in IE and in Chrome.
In Firefox however the layout is messed up and the toolbars are missing completely.
It's not even a rendering issue, the html simply hasn't been generated.
So, does anyone know how I get the toolbars to be rendered in Firefox?
Oh, this is Crystal XI r2... I think...
In the .asp template:-
<CR:CrystalReportViewer
ID="CrystalReportViewer"
runat="server"
ClientTarget="Uplevel"
AutoDataBind="true"
BackColor="#FFFFFF"
PageZoomFactor="100"
Style="border: 1px solid black"
DisplayBottomToolbar="True"
DisplayToolbar="True"
ReuseParameterValuesOnRefresh="true"
HasCrystalLogo="False"
HasToggleGroupTreeButton="False"
DisplayGroupTree="False"
/>
In the page load:-
SetDBLogonForReport([......]);
CrystalReportViewer.ReportSource = rpt;
CrystalReportViewer.EnableDatabaseLogonPrompt = false;
CrystalReportViewer.HasDrillUpButton = true;
CrystalReportViewer.HasExportButton = true;
CrystalReportViewer.HasGotoPageButton = true;
CrystalReportViewer.HasPageNavigationButtons = true;
CrystalReportViewer.HasPrintButton = true;
CrystalReportViewer.HasRefreshButton = true;
CrystalReportViewer.HasSearchButton = true;
CrystalReportViewer.HasToggleGroupTreeButton = false;
CrystalReportViewer.HasViewList = true;
CrystalReportViewer.HasZoomFactorList = true;
CrystalReportViewer.AppRelativeTemplateSourceDirectory = @"~/Crystal/";
SetupParametersForReport([..........]);
Sorry, I've had to thin it down slightly.
Looking on chrome the toolbar source is generated with links like this:-
http://My*dev*host/aspnet_client/system_web/4_0_30319/crystalreportviewers115/images/toolbar/first.gif
These links work fine in all browsers, so I think the path is correct.
I'm attempting to run on .Net 4.0.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议将项目中的 DLL 和服务器上的运行时升级到最新版本:
SAP Crystal Reports for Visual Studio 2010。
版本号为 Version=13.0.2000.0。
已经做了很多改进,也许firefox的兼容性问题已经解决了。
您可以从业务对象页面下载它。
I suggest to upgrade DLLs in your project and runtime on your server to latest version:
SAP Crystal Reports for Visual Studio 2010.
Version number is Version=13.0.2000.0.
Many improvements have been done so, maybe, firefox compatibility issues has already been sollved.
You can dowload it from Business Object page.
这是您应该执行的操作,工具栏应显示
从开发系统复制 aspnet_clinet 文件夹 (c:/inetpub/wwwroot/aspnet_client) 并将该文件夹粘贴到服务器和应用程序文件夹的同一路径中。给予应用程序完全权限,然后将显示工具栏图像。
Here is what you should do and the tool bars should display
copy the aspnet_clinet folder (c:/inetpub/wwwroot/aspnet_client) from developement system and paste this folder in same path of the server and application folder. Give the full permitions to the application, then toolbar images will be dispalyed.