>hi,
>i am not too sure if this is the best section to put this question in but maybe someone can point me in the right direction anyway. i am trying to get a page to print but it is 800 pixels wide and the printer only prints about 600. ths information is in a table and the cell on the left is what i am trying to print. i dont want to use frames but is there any way that i can specify a cell that the printer should print instead of the entire page.
>hope that makes sence, any help much appreciated
>cheers
>~M
You might try using the media options of CSS to enable/disable printing for specific cells in the table.
http://www.meyerweb.com/eric/articles/webrev/200001.htmlhttp://www.alistapart.com/stories/goingtoprint/If the section of table to be printed is fixed, then simply assign appropriate styles defined for both screen & printer.
<style type="text/css">
.cell1 {
display: block;
}
@media print
.cell1 {
display: none;
}
}
</style>
If dynamically selecting area to print, then the style properties can be manipulated by accessing through the styleSheets property of the document.
http://msdn.microsoft.com/workshop/author/dhtml/reference/collections/stylesheets.aspI haven't found an easy way to determine the media a particular rule applies to, other than using separate style sheets with specific media & searching for the style sheet with media="print". You can then search the rules of that style sheet to find the required selector & modify the properties of the associated style.
<style type="text/css" media="screen">
.cell1 {
display: block;
}
</style>
<style type="text/css" media="print">
.cell1 {
display: none;
}
</style>
Len Speed