when a clicking on "View Printable Version" the window is opening and closeing and nothing happens.
so I tried to fix it with window.print but I don't quite think it's the solotion.
We tried to reproduce the issue in calendar, patient note screens etc but we couldn't able to get the issue. It is printing correctly. It will be helpful if you share screenshot or video of the issue.
We have reproduced this issue in calendar screen and also fixed the same. The issue is raising only in chrome browser and not in other browsers. To fix the issue please change this line "if(win.printLogPrint(window)) window.close();" to following lines,
Hi,
We tried this solution but didn't work. The only thing that worked for us so far is to erase "if(win.printLogPrint(window)) window.close();" completely.
thanks, shachar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Its also happening to us in the calendar
Hi Dron,
Greetings from Visolve Inc.
We tried to reproduce the issue in calendar, patient note screens etc but we couldn't able to get the issue. It is printing correctly. It will be helpful if you share screenshot or video of the issue.
Thanks
OpenEMR Customization/Support Team,
Visolve Inc
Happens to me too.
On the calendar-> view prinatble version. Opens and closes a window (very fast)
Im on chrome
Hi Dron & Cohen,
We have reproduced this issue in calendar screen and also fixed the same. The issue is raising only in chrome browser and not in other browsers. To fix the issue please change this line "if(win.printLogPrint(window)) window.close();" to following lines,
if(win.printLogPrint(window))
setTimeout(function(){window.close();},1);
The above change has to be done in ,
After the changes, please refresh the web page and try the functionality.
Thanks
OpenEMR Customization/Support Team,
Visolve Inc
Hi,
We tried this solution but didn't work. The only thing that worked for us so far is to erase "if(win.printLogPrint(window)) window.close();" completely.
thanks, shachar
Hi,
Placed a solution here that keeps print but removes the close:
https://github.com/openemr/openemr/pull/349
It is testing well on both Firefox and Chrome.
IMPORTANT:
NOTE that you need to clear the calendar smarty cache at Administration->Other->Calendar->'Clear Smarty Cache'
-brady
Above code did well on estensive testing, so brought it into the codebase.