-
-
Notifications
You must be signed in to change notification settings - Fork 199
Request: Option to display "export" html in a new window #195
Description
I've recently needed printouts of a couple of my notes, and while it can be done with export, you then need to open the exported file and then print, which is fine until there are minor issues in the print preview, so you go back make the correction then have to export/open/print again...
If there was an option to open the generated html in a new window rather than exporting, the print process would be much easier.
Ideally there would be a "Print" button in the new window that was styled not to print, and that would trigger the system print dialog using window,print()
This change would also make it easy for most users to save their notes as PDF's by simply printing to PDF so no conversion required on the NoteDiscovery side.
exportHTML should probably be split up with the actual HTML generation portion of it moved to a separate function, then exportHTML and ??printHTML?? could both use the same sub to get the HTML to export or print.
The print could open a popup window with the generated HTML, with an onload trigger to print and close.