window.print() Javascript function is not working in Microsoft Edge 44.17763.1.0

Not reproducible Issue #22092428

Details

Author
Ali S.
Created
Jun 11, 2019
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Window.print() JS function doesn’t open the browser’s default print dialog box.

While this function works like a charm in other browsers.

There is a similar reported issue but says it’s been fixed but I believe its not.

Attachments

0 attachments

    Comments and activity

    • Hi Ali!

      Thank you for contacting us about this issue! I tested this using this demo: https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_print and I was unable to replicate the problem you are describing. Could you provide me with your version of Microsoft Edge and a reproduction on a page such as https://jsfiddle.net/?

      Thanks,

      Zach

    • Microsoft Edge Team

      Changed Assigned To to “Zachariah L.”

    • Hi Zach,

      I am using Microsoft Edge 44.17763.1.0 and I am still facing the same issue.

      I have browsed to the w3schools link that you provided me, I used Microsoft edge and nothing happens when I click on the print button that calls window.print() function.

      Whereas using the same w3schools link in chrome, clicking on the print button opens up the default print dialog box.

    • I tried the same example code for window.print() function on jsfiddle. Here is the reproduction of it - https://jsfiddle.net/v38uwf4c/

      The button calling window.print() function does nothing upon a click.

    • Hi Ali!

      I tested the reproduction you sent me on the newest version of Microsoft Edge and the button pulled up the print menu properly. Do you have any extensions installed that could be effecting this?

      Thanks,

      Zach

    • Hi Ali!

      For now, I will resolve this issue as "Not Reproducible". If you are still experiencing this problem then please feel free to reopen this issue with the information requested and I will resume my investigation.

      Thanks,

      Zach

    • Microsoft Edge Team

      Changed Status to “Not reproducible”

    • Hello, we are still seeing an issue with window.print() in Edge using version 44.18362.1.0.
      The issue is that the print preview window loads but there is an endless spinner seen in the print preview and no print content seen. Can you please advise?

    • Some additional info: if we pass content to a window.open() call first which happens to open in a new tab, it’s able to print fine with window.print().

      The issue for us is that when only calling window.print() it is displaying the endless spinner.

      Unfortunately for our use case we need to call window.print() alone because we want to grab the entire page.

    You need to sign in to your Microsoft account to add a comment.

    Sign in