Menu

#459 View Printable Version doesn't work

Development_Release
closed-fixed
nobody
None
5
2016-11-20
2016-09-11
Dror Golan
No

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.

Discussion

  • Sharon Cohen

    Sharon Cohen - 2016-09-27

    Its also happening to us in the calendar

     
  • ViSolve

    ViSolve - 2016-09-29

    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

     
  • Sharon Cohen

    Sharon Cohen - 2016-10-05

    Happens to me too.
    On the calendar-> view prinatble version. Opens and closes a window (very fast)
    Im on chrome

     
  • ViSolve

    ViSolve - 2016-10-06

    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 ,

    • interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day_print/outlook_ajax_template.html
    • interface/main/calendar/modules/PostCalendar/pntemplates/default/views/month_print/outlook_ajax_template.html
    • interface/main/calendar/modules/PostCalendar/pntemplates/default/views/week_print/outlook_ajax_template.html

    After the changes, please refresh the web page and try the functionality.

    Thanks
    OpenEMR Customization/Support Team,
    Visolve Inc

     
  • shachar zilbershlag

    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

     
  • Brady Miller

    Brady Miller - 2016-11-16

    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

     
  • Brady Miller

    Brady Miller - 2016-11-20

    Above code did well on estensive testing, so brought it into the codebase.

     
  • Brady Miller

    Brady Miller - 2016-11-20
    • status: open --> closed-fixed
     

Log in to post a comment.