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.
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.