X
Tap here to go to the mobile version of the site.

Support Forum

window.print() fails in downloaded pages and maybe also with File => Print ...

Posted

Clicking the menu button File=Print... has for a long time failed to provide useful information on any of my printers, including CutePDF and physical printer. Even a short web-page seems to be converted to a single long page perhaps with something at the bottom which never shows.

The failure of window.print() has been pointed out and 'solved' by


Chosen Solution

You use document.getElementById("btnPrint"), but you only specify the NAME attribute in the input tags and not the ID.

So you will have to add the ID as well to make Firefox find that element.


which of course it utterly useless for others than the page's author and certainly not for the File=>Print ... in Firefox.

Presently I'm hit with a need to print the reaction on my annual tax-report. Scaring.

Clicking the menu button File=Print... has for a long time failed to provide useful information on any of my printers, including CutePDF and physical printer. Even a short web-page seems to be converted to a single long page perhaps with something at the bottom which never shows. The failure of window.print() has been pointed out and 'solved' by ------------------------ Chosen Solution You use document.getElementById("btnPrint"), but you only specify the NAME attribute in the input tags and not the ID. So you will have to add the ID as well to make Firefox find that element. ---------------------- which of course it utterly useless for others than the page's author and certainly not for the File=>Print ... in Firefox. Presently I'm hit with a need to print the reaction on my annual tax-report. Scaring.

Chosen solution

Sorry to have asked!

Solution: modify the configuration for printing. CutePDF Writer now set as default. Problem probably caused by replacement of printer.

Read this answer in context 0

Additional System Details

Installed Plug-ins

  • Shockwave Flash 27.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0

More Information

Chosen Solution

Sorry to have asked!

Solution: modify the configuration for printing. CutePDF Writer now set as default. Problem probably caused by replacement of printer.

Sorry to have asked! Solution: modify the configuration for printing. CutePDF Writer now set as default. Problem probably caused by replacement of printer.
Bala Subramaniyan 1 solutions 21 answers

Can you please share the screenshot of your problem ?

Can you please share the screenshot of your problem ?