Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crystal Report Viewer button is not working in Google chrome and Firefox but fine in IE

Mine is asp.net with c# web application. Crystal Report Print button is not working in Google chrome and Firefox but fine in IE. When I click on print button of Crystal Report Viewer it just refresh the web page and doesn't display any dialog in Google chrome. In Firefox it opens the print dialog box, now i'm clicking the cancel button. Then i click Logout, its simply staying in the same page, while clicking any other links after clicking Logout it navigates to Session expire page. I don't have this issue in IE. CrystalReportViewer is not placed with in Update panel.

like image 357
Venil Avatar asked Nov 03 '22 15:11

Venil


1 Answers

Make sure you have this in your assemblies in the 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 true print in Chrome it exports the report to PDF then you can print from the file.

like image 139
Kyle Avatar answered Nov 09 '22 07:11

Kyle