p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   C# (http://p2p.wrox.com/forumdisplay.php?f=22)
-   -   Want to print some portion of the web page. (http://p2p.wrox.com/showthread.php?t=49117)

jigu_2811 October 17th, 2006 07:27 AM

Want to print some portion of the web page.
 
Hi

I want to print some portion of the web page like datagrid.

So how can it possible.

Ok

Thanks:)




adam_kahtava October 17th, 2006 08:16 AM

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]


All times are GMT -4. The time now is 04:02 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.