Custom Print Button to RadWindow Titlebar - Only prints first page

2 posts, 0 answers
  1. Amy
    Amy avatar
    113 posts
    Member since:
    Aug 2010

    Posted 21 Oct 2011 Link to this post

    Could anyone offer any ideas as to why when using Firefox only the first page prints when using a custom print button on a RadWindow?

    In my case two pages are printed, but only the first page has the text being printed and the rest of text that should appear on the second page isn't there. My print settings in Firefox are set to print the page #s and Date/Time in the footer, and these do appear on the second page so I know it's not just a blank sheet of paper printing.

    If I use Google Chrome, the full text prints as expected on two pages (although the last line on the first page is only the top-half of the sentence and the first line of the second page is the bottom-half of the same sentence).

    If I use IE, it prints exactly as it should...the full text prints as expected, and the last line on the first page is not cut-off and appears properly on the second page.

    I really need this print functionality to work properly for Firefox as that is the browsers our users are told to use.  If nothing else, at least Chrome as we do sometimes suggest that as alternative.

    Note - our code for adding the custom print button is taken from the Telerik article "Adding a Custom Button to RadWindow Titlebar" (

  2. Marin Bratanov
    Marin Bratanov avatar
    3899 posts

    Posted 26 Oct 2011 Link to this post

    Hello Amy,

    The KB article you linked offers the printing functionality as a bonus, its main concept is to show how to add buttons to the RadWindow's titlebar. The way this printing works is simply by calling the print() method of the document object of the iframe. This means that we have no control over the printing process and content - this is entirely up to the browser. What I can advise is that you try this code in a simple iframe (with appropriate dimensions, of course). It should produce the same result, as this is what the RadWindow uses.

    You can also try the approach from this forum thread where printing is discussed. The difference is that you would need an additional function to get the HTML from the iframe, yet the results, I expect, will be the same, as the printing functionality comes from the browser, not from our controls.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top