Printing in Microsoft Edge

7 posts, 0 answers
  1. Stephanie
    Stephanie avatar
    139 posts
    Member since:
    Aug 2013

    Posted 03 Dec 2015 Link to this post

    We have had no issues printing in any browsers until Microsoft Edge. The contents of the radWindow overlays the underneath layers when printing. How do we globally fix this as we have a TON of places we print the contents of radWindows?

    Thanks!

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 04 Dec 2015 Link to this post

    Hi Stephanie,

    Printing is a browser feature and our controls do not affect it.

    If there are problems with the way Edge prints, they can be related to either of the following:

    • printing an <iframe> element (this is what RadWindow uses to load its content page)
    • printing an absolutely positioned <div> element (this is what RadWIndow's ContentTemplate is)
    • general issues between Edge and your printter (or its drivers)

    Regards,

    Marin Bratanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stephanie
    Stephanie avatar
    139 posts
    Member since:
    Aug 2013

    Posted 04 Dec 2015 in reply to Marin Bratanov Link to this post

    Hello Martin,

    Thank you for the reply! I do understand that printing is not under your control. My question still is though: how do we print the contents of the RadWindos (iframe) only, not the underlying window in Microsoft Edge as it works in all the other browsers fine thus far? I would love to tell clients not to use any Microsoft browser, but you know they still will :)

    Any help would be greatly appreciated.

  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 04 Dec 2015 Link to this post

    Hi,

    You can call the print() method of the iframe object. Or execute the browser print command, both are browser API. You can find an example in the sample from this KB article: http://www.telerik.com/support/kb/aspnet-ajax/window/details/adding-a-custom-button-to-radwindow-titlebar.

    You can get the iframe through the get_contentFrame() method of the RadWindow object.

    Regards,

    Marin Bratanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Stephanie
    Stephanie avatar
    139 posts
    Member since:
    Aug 2013

    Posted 04 Dec 2015 in reply to Marin Bratanov Link to this post

    Thanks for the quick reply!

    It sounds like we are already going the print/execute print you are referring to This is how we are currently doing it:

            <script type="text/javascript">
                function PrintPage() {
                    if (document.all) {
                        document.execCommand("Print");
                    }
                    else {
                        window.setTimeout("window.print()", 250);  
                    }

                    window.setTimeout("close()", 250);
                }
            </script>

     

    But that does not work in Microsoft Edge....

  7. Stephanie
    Stephanie avatar
    139 posts
    Member since:
    Aug 2013

    Posted 11 Dec 2015 Link to this post

    Any other options/ideas?
  8. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 12 Dec 2015 Link to this post

    Hi Stephanie,

    I do not have any further suggestions on this browser problem. What I can offer as a troubleshooting idea is to get a simple iframe to print as expected, and then the same approach will work for a RadWindow: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/troubleshooting/common-issues#general-troubleshooting.

    Regards,

    Marin Bratanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017