:: Forum >> Version 2 >>
How to print?
Is there any way to print the grid?
Francesco_G
Friday, October 26, 2007
nvm, I got it. Had to go through the forum and make a medley of many posts.
Now...
create a NEW stylesheet and call it siteprint.css
paste the code below in there
@media print
{
.active-scroll-bars,
.active-scroll-left,
.active-scroll-corner {
display: none;
}
.active-scroll-top {
position: absolute;
overflow: visible;
width: auto!important;
height: auto!important;
}
.active-controls-grid {
overflow: visible;
height: auto;
width: auto;
}
.active-scroll-data {
position: absolute;
overflow: visible;
width: auto!important;
height: auto!important;
}
}
Then modify your html page adding
<link rel="stylesheet" media="print" href="siteprint.css" type="text/css">[
If you have any <style> tag in your html, be sure to add the keyword "screen" to the media.
so, in my case, I had to modify this
<style>
.aw-grid-control {height: 100%; width: 100%; font: menu;}
.aw-column-0 {border-right: 1px solid #ccc; width: 180px;}
.aw-column-1 {border-right: 1px solid #ccc; width: 150px;}
.aw-column-2 {border-right: 1px solid #ccc; width: 450px;}
.aw-grid-row {height:20px}
.aw-alternate-even {background: #FFFFFF; border-bottom: 1px solid #ccc}
.aw-alternate-odd {background: #ECF7FB; border-bottom: 1px solid #ccc}
</style>
into...
<style [b]media="screen"[/b]>
.aw-grid-control {height: 100%; width: 100%; font: menu;}
.aw-column-0 {border-right: 1px solid #ccc; width: 180px;}
.aw-column-1 {border-right: 1px solid #ccc; width: 150px;}
.aw-column-2 {border-right: 1px solid #ccc; width: 450px;}
.aw-grid-row {height:20px}
.aw-alternate-even {background: #FFFFFF; border-bottom: 1px solid #ccc}
.aw-alternate-odd {background: #ECF7FB; border-bottom: 1px solid #ccc}
</style>
Francesco_G
Friday, October 26, 2007
well, the bbcode does not work as intended :p
<style media="screen">
Francesco_G
Friday, October 26, 2007
This topic is archived.
Back to support forum
Forum search