1

I have a table with rows in it corresponding to documents. I'd like the user to be able to click a "print" button in the table and have the browser open the standard print dialog (ctrl-P).

So far, I've looked at Print.js (pdf/html/image/json only) and iframe methods (just attempts to download the file) - neither work.

Is this doable?

dropsoid
  • 35
  • 5
  • `window.print()` – Jens Ingels Feb 04 '21 at 11:51
  • The linked question uses `window.print()` and as I've said, it just attempts to download the file instead of printing. – dropsoid Feb 04 '21 at 12:18
  • Does this answer your question? [How do I render a Word document (.doc, .docx) in the browser using JavaScript?](https://stackoverflow.com/questions/27957766/how-do-i-render-a-word-document-doc-docx-in-the-browser-using-javascript) – Jens Ingels Feb 05 '21 at 14:59

0 Answers0