View Single Post
  #2 (permalink)  
Old October 17th, 2006, 08:16 AM
adam_kahtava adam_kahtava is offline
Wrox Technical Editor
 
Join Date: Dec 2005
Location: , , Canada.
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use Cascading Style Sheets (CSS) by defining the following in your HTML head:

<link rel="stylesheet" href="/css/DataGridPrint.css" type="text/css" media="print" />

Then in DataGridPrint.css add the following:

  * {
    visibility: hidden;
  }

  #DataGridBox * {
    visibility: visible;
  }

See the following links for more information:
  http://alistapart.com/articles/printyourway
  http://webdesign.about.com/cs/css/a/aa042103a.htm
  http://www.w3.org/TR/REC-CSS2/media.html

- Adam Kahtava [http://adam.kahtava.com]
Reply With Quote