Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

How not to print the toolbar

Last post 06-26-2008 16:51 by [Infragistics] Tony Lombardo. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-29-2008 10:58

    How not to print the toolbar

    Is there a way to have the tool bar not print or not print the item text when the user attempts to print the current web form using the browser web page commands? I have noticed that the toolbar does not render a picture, but does reserve space and prints the item text.

    Filed under:
    • Post Points: 20
  • 06-26-2008 16:51 In reply to

    Re: How not to print the toolbar

    There's a CSS trick for this.  You can use special css classes for media=print.  This can be done inline, or through a separate stylesheet.  For instance, if you want to hide the toolbar during printing you can set the toolbar's cssclass to "noprint" and define the following in your page

    <style type="text/css">

    @media=print

    {

    .noprint
    { display:none;}

    }
    </style>

    Anthony Lombardo
    Lead Technical Evangelist
    Infragistics, Inc.
    Worldwide Evangelism Group

    tonyl@infragistics.com
    blogs.infragistics.com

    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems