Page Break – Advanced PDF/HTML for Saved Search – labels

Hi –  I am using a PDF/HTML to print Saved Search results for labels.   Our labels can print 10 rows on a page.

Is there a way to do a page break?  I had created this #if statement but not wroking:

 

<#if result?index %10 == 9 && result?index = records?size – 1><pbr /><#elseif result?index % 1 == 2 && result?index != records?size – 1><br />
</#if>

Rookie Asked on January 19, 2022 in Saved Searches.
Add Comment
2 Answer(s)

Hi,

I think you can simplify the if statement to this:

<#if result?index %10 == 9 && result?index != records?size - 1>
<pbr />
<#else>
<br />
</#if>

Thanks,

Chris

Intermediate Answered on January 21, 2022.
Add Comment

thanks Chris!

 

Rookie Answered on January 21, 2022.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor