搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

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

more options

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.

被選擇的解決方法

Sorry to have asked!

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

從原來的回覆中察看解決方案 👍 0

所有回覆 (2)

more options

選擇的解決方法

Sorry to have asked!

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

more options

Can you please share the screenshot of your problem ?