[Bug 36512] New: Replace html export with printing
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36512 Bug ID: 36512 Summary: Replace html export with printing Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Reports Assignee: koha-bugs@lists.koha-community.org Reporter: cbrannon@cdalibrary.org QA Contact: testopia@bugs.koha-community.org Currently, to print a report via template, you have to export the report to an html file, then open it and print it. I would like to suggest building the print into the report. I currently use the following via jquery: //Report Printing (v23.05) if($('#rep_guided_reports_start #format').length) { $('#format').siblings('ul').append('<li><a id="mnuPrintReport" href="#">Print Report</a></li>'); $('#mnuPrintReport').on('click', function () { var reportInfo = '<html><head></head><body>' + $('#ReportContent').html() + '</body></html>'; var myWindow=window.open('','',''); myWindow.document.write(reportInfo); myWindow.document.close(); setTimeout(function(){ myWindow.focus(); myWindow.print(); myWindow.close(); },500); }); } //END Report Printing Any report I want to print must be wrapped in <div #ReportContent></div> This works for templated reports, and might also work for regular reports. The div could be baked into to code. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36512 Christopher Brannon <cbrannon@cdalibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Replace html export with |Build printing into reports |printing | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org