79212281

Date: 2024-11-21 17:23:12
Score: 0.5
Natty:
Report link
  1. In order use browser's printing function, you must render the thing you want to print.
  2. DOCX files rendering is not supported, so you must first convert the file into renderable format, e. g. HTML or PDF. Then you must render it and call .print function on the window containing the doc.
  3. If you don't want the rendered doc to take any space on screen, you should hide it with display:none.
  4. CSS property @media print can be used to configure how DOM elements will be printed. For example, when you print this Stack Overflow page, navigation elements are hidden.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Herman Nurlygayanov