This is a migrated thread and some comments may be shown as answers.

Printing RadWindow in Internet Explorer

3 Answers 70 Views
Window
This is a migrated thread and some comments may be shown as answers.
DogBizPro
Top achievements
Rank 1
DogBizPro asked on 06 Mar 2014, 12:40 AM
Is there a way to correctly print the contents of a RadWindow in Internet Explorer. We recently switched all of our popups to the radwindow and now clients using IE cannot print. They are having the rad window contents overlay the actual window when printing. The other browsers print the radwindow just fine. Please help us fix this in IE.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Mar 2014, 04:19 AM
Hi Stephanie,

Please have a look into this code library for printing the contents of RadWindow.

Thanks,
Shinu.
0
DogBizPro
Top achievements
Rank 1
answered on 06 Mar 2014, 03:21 PM
Hello Shinu,

Thank you for the info. I am still a bit confused. For the print window we are currently using a standard html link with an onclick attribute.

 lnkPrint.Attributes.Add("onclick", "openRadWindow('" + Constants.P_PRINT + "?print=y&schedule=" + c.ID.ToString() + "'); return false;");

That works fine everywhere except IE. We also have a print preview that is using:

                        // Print Preview
                        radPrintPreview.OpenerElementID = lnkPreview.ClientID;
                        radPrintPreview.NavigateUrl = Constants.P_PRINT + "?schedule=" + c.ID.ToString();
                        radPrintPreview.MinHeight = 500;
                        radPrintPreview.MinWidth = 700;
                        radPrintPreview.Behaviors |= Telerik.Web.UI.WindowBehaviors.Resize;

If you right click that radwindow in IE it will print without overlaying just fine, but the text is pretty small. Both radwindows display the exact same page behind the scenes. The only difference is when you pass print=y in the querystring, then it calls JavaScript to print the page:

            function PrintPage() {
                window.setTimeout("window.print()", 250);  
                window.setTimeout("close()", 250);
            }

I know it is an IE issue, but what is the easiest way to fix all the print windows we have? We have a lot :)

0
DogBizPro
Top achievements
Rank 1
answered on 06 Mar 2014, 03:26 PM
Nevermind. I just replaced our JavaScript with what was in the code library link and that fixed it in IE.
Tags
Window
Asked by
DogBizPro
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
DogBizPro
Top achievements
Rank 1
Share this question
or