Hi there.
We have an issue related to footer, it was working on the older version but after we upgraded to version 10 it quit working.
See css which worked on older version:
.HwPrintFooter
{
margin: 0;
padding: 0;
max-height: none;
overflow: visible;
position: relative;
}
.HwPrintFooter img
{
display: block;
float: bottom;
margin-bottom: -1in;
}
@page {
size: US-Letter;
margin-top: 36pt;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
}
* { prince-link: none ! important }
Then we found that removing next lines, footer appears, but not right at the bottom.
float: bottom;
margin-bottom: -1in;
To fix it I added next css code to .HwPrintFooter
flow: static(footer, current);
and
@bottom-left-corner {
margin-bottom: -1px;
content: flow(footer);
}
Result:
<?xml version="1.0" encoding="utf-8"?>
<html >
<head>
<style type="text/css">
@page
{
margin-bottom: 1in !important;
font-family: verdana;
font-size: 11px;
}
.HwPrintDocumentWrapper
{
width: 6.5in;
}
#HwTableWrapper
{
margin: 0;
}
#HwTBody
{
display: block;
}
#HwCoverPage
{
margin-left: 1in;
margin-right: 1in;
}
#HwFormsAppendixHeader
{
margin-left: 1in;
margin-right: 1in;
}
.HwPrintHeader
{
margin: 0;
padding: 0;
height: auto;
margin-top: -50px;
margin-left: -2px;
position: relative;
top: auto;
left: auto;
}
.HwPrintFooterWrapper
{
margin: 0;
padding: 0;
}
.HwPrintFooter
{
margin: 0;
padding: 0;
max-height: none;
overflow: visible;
position: relative;
flow: static(footer, current);
}
.HwPrintFooter img
{
display: block;
}
#HwOuterPrintWrapper
{
margin-top: 0px;
margin-left: 1in;
margin-right: 1in;
}
</style>
<style type="text/css">
@page {
size: US-Letter;
margin-top: 36pt;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
@bottom-left-corner {
margin-bottom: -1px;
content: flow(footer);
}
}
* { prince-link: none ! important }
</style>
</head>
<body style="font-size:12pt">
<table id="HwTableWrapper" class="HwElement">
<thead id="HwTHead">
<tr>
<td>
<div class="HwPrintHeader HwPrintHeaderRepeatAll">
<div id="IxHeaderWrapper">
<div id="IxHeaderImage">
<img src="http://rtfq.net/wp-content/uploads/2012/02/header.png" />
</div>
<div id="IxHeaderTextWrapper"/>
</div>
</div>
</td>
</tr>
</thead>
<tfoot id="HwTFoot">
<tr>
<td>
<div class="HwPrintFooterWrapper">
<div class="HwPrintFooter HwPrintFooterRepeatAll">
<div id="IxClientDisclaimerWrapper">
<div id="IxClientDisclaimerTextWrapper"/>
<div id="IxClientDisclaimerImage">
<img src="http://dhruvacademy.com/footer.png" />
</div>
</div>
</div>
</div>
</td>
</tr>
</tfoot>
<tbody id="HwTBody">
<tr>
<td>
<div id="HwCoverPage">
<!-- cover page can go here -->
</div>
<div id="HwOuterPrintWrapper">
<!-- multiple docTemplates can go here -->
</div>
<div id="HwFormsAppendixHeader">
<!-- appendix can go here -->
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>
PD: Header and Footer images are just samples.
All works when we compile it on command prompt, but when we run through the app it doesn't. What can be wrong?
We have an issue related to footer, it was working on the older version but after we upgraded to version 10 it quit working.
See css which worked on older version:
.HwPrintFooter
{
margin: 0;
padding: 0;
max-height: none;
overflow: visible;
position: relative;
}
.HwPrintFooter img
{
display: block;
float: bottom;
margin-bottom: -1in;
}
@page {
size: US-Letter;
margin-top: 36pt;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
}
* { prince-link: none ! important }
Then we found that removing next lines, footer appears, but not right at the bottom.
float: bottom;
margin-bottom: -1in;
To fix it I added next css code to .HwPrintFooter
flow: static(footer, current);
and
@bottom-left-corner {
margin-bottom: -1px;
content: flow(footer);
}
Result:
<?xml version="1.0" encoding="utf-8"?>
<html >
<head>
<style type="text/css">
@page
{
margin-bottom: 1in !important;
font-family: verdana;
font-size: 11px;
}
.HwPrintDocumentWrapper
{
width: 6.5in;
}
#HwTableWrapper
{
margin: 0;
}
#HwTBody
{
display: block;
}
#HwCoverPage
{
margin-left: 1in;
margin-right: 1in;
}
#HwFormsAppendixHeader
{
margin-left: 1in;
margin-right: 1in;
}
.HwPrintHeader
{
margin: 0;
padding: 0;
height: auto;
margin-top: -50px;
margin-left: -2px;
position: relative;
top: auto;
left: auto;
}
.HwPrintFooterWrapper
{
margin: 0;
padding: 0;
}
.HwPrintFooter
{
margin: 0;
padding: 0;
max-height: none;
overflow: visible;
position: relative;
flow: static(footer, current);
}
.HwPrintFooter img
{
display: block;
}
#HwOuterPrintWrapper
{
margin-top: 0px;
margin-left: 1in;
margin-right: 1in;
}
</style>
<style type="text/css">
@page {
size: US-Letter;
margin-top: 36pt;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
@bottom-left-corner {
margin-bottom: -1px;
content: flow(footer);
}
}
* { prince-link: none ! important }
</style>
</head>
<body style="font-size:12pt">
<table id="HwTableWrapper" class="HwElement">
<thead id="HwTHead">
<tr>
<td>
<div class="HwPrintHeader HwPrintHeaderRepeatAll">
<div id="IxHeaderWrapper">
<div id="IxHeaderImage">
<img src="http://rtfq.net/wp-content/uploads/2012/02/header.png" />
</div>
<div id="IxHeaderTextWrapper"/>
</div>
</div>
</td>
</tr>
</thead>
<tfoot id="HwTFoot">
<tr>
<td>
<div class="HwPrintFooterWrapper">
<div class="HwPrintFooter HwPrintFooterRepeatAll">
<div id="IxClientDisclaimerWrapper">
<div id="IxClientDisclaimerTextWrapper"/>
<div id="IxClientDisclaimerImage">
<img src="http://dhruvacademy.com/footer.png" />
</div>
</div>
</div>
</div>
</td>
</tr>
</tfoot>
<tbody id="HwTBody">
<tr>
<td>
<div id="HwCoverPage">
<!-- cover page can go here -->
</div>
<div id="HwOuterPrintWrapper">
<!-- multiple docTemplates can go here -->
</div>
<div id="HwFormsAppendixHeader">
<!-- appendix can go here -->
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>
PD: Header and Footer images are just samples.
All works when we compile it on command prompt, but when we run through the app it doesn't. What can be wrong?