Crystal Report Viewer button does not work in Google Chrome and Firefox, but works fine in IE

Mine is asp.net with a C # web application. The Crystal Report Print button does not work in Google Chrome and Firefox, but it works fine in IE. When I click the Print button in Crystal Report Viewer, it just refreshes the web page and doesn’t display the dialog box in Google Chrome . Firefox opens the print dialog, now I click the cancel button. Then I click "Logout", just staying on the same page, at the same time click on other links after clicking "Logout", which goes to the "Session Expiration" page. I do not have this problem in IE . CrystalReportViewer is not hosted in the Update panel.

+4
source share
4 answers

Make sure you have this in your assemblies in web.config

<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> 

I added this assembly and the print button started working for me in all browsers. However, its not a real font in Chrome, it exports the report to PDF, then you can print it from a file.

+2
source

Additionally, with the installation of CrystalDecisions.ReportAppServer.ClientDoc, try setting the parameter:

  CrystalReportViewer1.PDFOneClickPrinting = false; 
+2
source

Try to use the report object instead of the viewer, you can use its PrintToPrinter property in another for printing and use the viewer for viewing (you may add another print button if necessary).

-1
source

Make sure your aspnet_client file has a file and PrintContol.cab is also included in your application. I hope it works on Firefox, but chrome doesn't work, enter image description here

-1
source

Source: https://habr.com/ru/post/1435655/


All Articles