close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Print style for repeating regions

Thread began 3/23/2009 3:07 pm by troyd | Last modified 3/28/2009 9:23 pm by troyd | 9175 views | 8 replies

Danilo Celic

By "using a div page break" that you mean that you're using one of the the CSS page break styles. If so, then you can write out that div every other row. How to do that would depend on the specific server language you're using, but basically you create a counter variable, and then increment that variable each time through the repeating region. You'd then test that variable to see if it is a multiple of two. Assuming that you start your counter at 1 , then you can use the modulus operator (determines the remainder of division of two number as in 3 divided by 2 has a remainder of 1) to see if there is a need to output your page break div.

A simple off the cuff example in PHP:
$rowCounter = 1;
// start repeat region code

Content to display
if( ($rowCounter % 2) == 0 ){
// write out page break div

$rowCounter++; // increment counter
// end repeat region code

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...