CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Setting page break in printable report

Print topic Send  topic

Author Message
ColinH

Posts: 15
Posted: 12/18/2006, 11:43 AM

Hi,

I have setup a Form(columnar) report . All looks fine until I try to print. I've made sure the tag <p style="PAGE-BREAK-AFTER: always"></p> is in the page footer as shown in the snippet of code below. This doesn't seem to have any impact - help - where should I move it to. I've adjusted the "Lines per print page" to the minimum (seems to not allow less than 36) and tried many other "Lines per print page" settings but these seem to have no effect.

Thanks
Colin

<!-- BEGIN Section Page_Footer -->
<tfoot>
<tr class="Footer">
<td>{Report_CurrentDate}   </td>
<td>Page {Report_CurrentPage} of {Report_TotalPages}
<!-- BEGIN Navigator Navigator -->
<!-- BEGIN First_On --><a href="{First_URL}">First</a> <!-- END First_On -->
<!-- BEGIN First_Off -->First <!-- END First_Off -->
<!-- BEGIN Prev_On --><a href="{Prev_URL}">Prev</a> <!-- END Prev_On -->
<!-- BEGIN Prev_Off -->Prev <!-- END Prev_Off --> 
<!-- BEGIN Pages -->
<!-- BEGIN Page_On --><a href="{Page_URL}">{Page_Number}</a> <!-- END Page_On -->
<!-- BEGIN Page_Off -->{Page_Number} <!-- END Page_Off --><!-- END Pages -->of {Total_Pages} 
<!-- BEGIN Next_On --><a href="{Next_URL}">Next</a> <!-- END Next_On -->
<!-- BEGIN Next_Off -->Next <!-- END Next_Off -->
<!-- BEGIN Last_On --><a href="{Last_URL}">Last</a> <!-- END Last_On -->
<!-- BEGIN Last_Off -->Last <!-- END Last_Off --><!-- END Navigator Navigator -->  </td>
</tr>
</tfoot>

<!-- BEGIN Panel PageBreak -->
</table>
</td>
</tr>
</table>
<p style="PAGE-BREAK-AFTER: always"></p>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top">
<table class="Grid" cellspacing="0" cellpadding="0">
<!-- END Panel PageBreak --><!-- END Section Page_Footer -->
</table>
</td>
</tr>
</table>
<!-- END Report OSM_INCIDENT_OSM_WO --><br>
View profile  Send private message
ColinH

Posts: 15
Posted: 12/18/2006, 4:47 PM

Figured it out. Solution below for anyone else who may benefit.

Need to have the PAGE-BREAK-AFTER included in its own table a little higher up...

<!-- BEGIN Next_Off -->Next <!-- END Next_Off -->
<!-- BEGIN Last_On --><a href="{Last_URL}">Last</a> <!-- END Last_On -->
<!-- BEGIN Last_Off -->Last <!-- END Last_Off --><!-- END Navigator Navigator --> </td>
</tr>
</tfoot>

<!-- BEGIN Panel PageBreak -->
</table>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<p style="PAGE-BREAK-AFTER: always"></p>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top">
<table class="Grid" cellspacing="0" cellpadding="0">
<!-- END Panel PageBreak --><!-- END Section Page_Footer -->
</table>
</td>
</tr>
</table>
<!-- END Report OSM_INCIDENT --><br>
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.