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: cbran...@cdalibrary.org QA Contact: testo...@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. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/