RadWindow Client side printing issue

2 posts, 1 answers
  1. Meenakshi Nagalingam
    Meenakshi Nagalingam avatar
    53 posts
    Member since:
    Aug 2009

    Posted 12 Sep 2009 Link to this post


    We are using radwindow control of Prometheus Q2 2009 version. While printing data in radwindow, The parent pages data is also getting printed.

    Problem:  While printing contents in radwindow using javascript:window.print(), both the parent window and radwindow content are  getting printed. Is there any option to print the radwindow content alone while doing client side printing.

  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Sep 2009 Link to this post

    Hi Meenakshi,

    Try the following client side code in order to print the radwindow page.

    <script type="text/javascript"
    function printPage() 
        var oWnd = GetRadWindow(); 
        var content = oWnd.GetContentFrame().contentWindow; 
        var printDocument = content.document
        if (document.all) 
            printDocument.execCommand( "Print"); 
    function GetRadWindow() 
        var oWindow = null
        if (window.radWindow) 
            oWindow = window.radWindow; 
        else if (window.frameElement.radWindow) 
            oWindow = window.frameElement.radWindow; 
        return oWindow; 

    Checkout the following forum link for more information:
    Print RadWindow

Back to Top