Hi,
I am facing a problem. I want to print a page with footer at bottom position. So for this i have given in my code
<style type="text/css" media=PRINT>
body
{
background-image:"url(<?=$bar_url;?>)";
background-repeat: no-repeat;
background-position: bottom center;
}
</style>
The full table structure is -
<TABLE width=100% cellpadding=0 cellspacing=0 valign=top xheight=100%><!-- Master-->
<THEAD style='display:table-header-group'>
<TR><TD valign=top>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td valign=top width=65%>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td valign=top><img src="/img/kaiser_result_logo.gif" border=0>
<tr><td valign=top>
<table width=100% cellpadding=0 cellspacing=0 class=kaiser_a8>
<tr><td valign=top>REGIONAL REFERENCE LABORATORIES
<tr><td valign=top>DIRECTOR:
</table>
</table>
<td valign=top width=35% align=right>
<table width=100% cellpadding=2 cellspacing=0 class=kaiser_a8>
<tr><td valign=top class=kaiser_a9 align=left nowrap><b>REGIONAL GENETIC TESTING LABORATORY<BR>BIOCHEMICAL GENETICS
<tr><td valign=top align=left>Address
<tr><td valign=top align=left>Fax
<tr><td valign=top align=left nowrap>Director
<tr><td valign=top align=left>Technical Director
</table>
</table>
<TR><TD valign=top>
<table width=100% cellpadding=0 cellspacing=0 style='border:1px solid black'>
<tr><td valign=top width=80%>
<table width=100% cellpadding=0 cellspacing=0 class=kaiser_a10b>
<tr><td valign=top width=60% class='ktr xkleft'><span class=kaiser_a6> PATIENT</span><br>
<span style='padding-left:40px'>Patient Name</span>
<td valign=top width=10% class='ktr xkbottom'><span class=kaiser_a6> SEX</span><br>
<span style='padding-left:20px'>Male
<td valign=top width=20% class='ktr xkbottom'><span class=kaiser_a6> DOB</span><br>
<span style='padding-left:20px'>DOB
<td valign=top width=10% class='ktr xkbottom'><span class=kaiser_a6> AGE</span><br>
<span style='padding-left:20px'>AGE
<tr><td colspan=4 valign=top>
<table width=100% cellpadding=0 cellspacing=0 class=kaiser_a10b>
<tr><td valign=top width=34% class='ktr xkleft'><span class=kaiser_a6> MEDICAL RECORD #</span><br>
<span style='padding-left:85px'>Patient ID
<td valign=top width=33% class='ktr xkbottom'><span class=kaiser_a6> SAMPLE ID #</span><br>
<span style='padding-left:30px'>LAB ID
<td valign=top width=33% class='ktr xkbottom'><span class=kaiser_a6> ACC #</span><br>
<span style='padding-left:30px'>ACC ID
</table>
<tr><td valign=top colspan=4>
<table width=100% cellpadding=0 cellspacing=0 class=kaiser_a10b>
<tr><td valign=top width=50% class='ktbr'><span class=kaiser_a6> LOCATION</span><br>
<span style='padding-left:48px'>Location
<td valign=top width=50% class='ktbr xkbottom'><span class=kaiser_a6> DR</span><br>
<span style='padding-left:18px'>Report Order By
</table>
</table>
<td valign=top Xwidth=30% >
<table width=100% cellpadding=0 cellspacing=0 class='kaiser_a9' style='padding-left:2pt;'>
<tr><td width=40% valign=top>
<td width=40% valign=top><span class=kaiser_a6>DATE
<td width=20% valign=top><span class=kaiser_a6>TIME
<TR><TD height=5pt>
<tr><td width=40% valign=top><span class=kaiser_a6>COLLECTED
<td width=40% valign=top><b>Date
<td valign=top><b>Time
<TR><TD height=7pt>
<tr><td width=40% valign=top><span class=kaiser_a6>RECEIVED
<td width=40% valign=top><b>Receieve DAte
<td valign=top><b>Recieve Time
</table>
</table>
<TR><TD>
</THEAD>
<TBODY>
<tr><td valign=top>
<table width=100% cellpadding=0 cellspacing=0>
<TR><TD valign=top style='page-break-before:always'><!-- TBODY -->
<table width=100% cellpadding=0 cellspacing=0 class=kaiser_a8>
<TR><TD valign=top class=kaiser_a7>CLINICAL DATA<tr><td height=60 valign=top style='border:1px solid black; padding-left:2px'>CLINICAL <tr><td height=5px>
<tr><td valign=top><b>LAB COMMENT
<tr><td>
</table>
<TR><TD valign=top>
<?
$bar_url="/lib/kaiser_footer.php"; // This code is returining the image created by GD library. you can use any image in place of $bar_url.
?>
</TBODY>
<TFOOT style="display:table-footer-group">
<TR xclass=tbr1><TD>
<H1 style='height:1pt'> </H1>
</TD>
<tr xheight=100% class=tbr1><td valign=bottom>
<table width=100% cellpadding=0 cellspacing=0 class=kaiser_a8>
<tr class=tbr1><td valign=bottom align=center style='border-bottom:1px solid black'>
<tr class=tbr1><td valign=bottom align=center>For clinical consultation, contact your area geneticists; or So. Cal. Kaiser: R. Mardarch, MD (Pager 213-246-0256)
<tr class=tbr1><td valign=bottom align=center>No. Cal. Kaiser: M. Lipson, MD (916-614-4785); K. Johnston, MD (415-833-2530); J. Baker, MD (510-752-7691)
</table>
</TFOOT>
</TABLE><!--End Master-->
<STYLE type="text/css">
.kaiser_a6 { font-family: Arial; font-size:6pt ;}
.kaiser_a6b { font-family: Arial; font-size:6pt ; font-weight:bold ;}
.kaiser_a7 { font-family: Arial; font-size:7pt;}
.kaiser_a8 { font-family: Arial; font-size:8pt;}
.kaiser_a9 { font-family: Arial; font-size:9pt;}
.kaiser_a9b { font-family: Arial; font-size:9pt; font-weight:bold}
.kaiser_a10b { font-family: Arial; font-size:10pt; font-weight:bold}
.kaiser_a10 { font-family: Arial; font-size:10pt;}
.kaiser_a11b { font-family: Arial; font-size:12pt; font-weight:bold}
.ktr{xborder-top:1px solid black; border-right:1px solid black; border-bottom:1px solid black}
.ktop{xborder-top:1px solid black}
.kleft{border-left:1px solid black}
.kbottom{border-bottom:1px solid black}
.ktbr{Xborder-top:1px solid black; Xborder-bottom:1px solid black; border-right:1px solid black}
</STYLE>
<style type="text/css" media=PRINT>
body
{
background-image:"url(<?=$bar_url;?>)";
background-repeat: no-repeat;
background-position: bottom center;
}
</style>
<STYLE type="text/css" media=SCREEN>
.tbr1 {display:inline}
.tbr2 { display:none }
</STYLE>
<STYLE type="text/css" media=PRINT>
.tbr1 {display:none}
.tbr2 { display:inline }
body {margin:0}
</STYLE>
where $bar_url is defined a page which returns a image.
with this code footer is displaying at bottom position at printing time but in windows VISTA version, when I click on "Print" button, all open windows become closed.
But in windows XP and 2000 server it is working properly.
IF i remove the style in bold, then in VISTA version window become not closed. But I have to display footer at bottom position.
How can i remove this problem? Can any one help me please?
Thanks
aastha_13