# bug: pageBreakAfterOccurrence

**URL:** <https://forum.servoy.com/t/bug-pagebreakafteroccurrence/190>\
**Category:** Classic Servoy\
**Created:** [July 11, 2003, 1:12pm UTC](https://forum.servoy.com/t/bug-pagebreakafteroccurrence/190 "2003-07-11T13:12:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [July 11, 2003, 1:12pm UTC](https://forum.servoy.com/t/bug-pagebreakafteroccurrence/190/1 "2003-07-11T13:12:29Z")

</div>

This function is not working correctly

Make new form (view as record) 2 pages,with several records, and place some text on it.  
Place the Body-part half the second page.  
Select the body-part and fill in property: pageBreakAfterOccurrence “1”.  
and select the property: allowBreakAcrossPageBounds.

Go to preview-mode and click to the next pages. After the second page, there must come a page-break. It is’nt !!

---

<div class="post-metadata">

**Author:** ![maarten](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@maarten](https://forum.servoy.com/u/maarten)\
**Post date:** [July 21, 2003, 11:17am UTC](https://forum.servoy.com/t/bug-pagebreakafteroccurrence/190/2 "2003-07-21T11:17:26Z")

</div>

is added to buglist.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [July 23, 2003, 11:42am UTC](https://forum.servoy.com/t/bug-pagebreakafteroccurrence/190/3 "2003-07-23T11:42:55Z")

</div>

is fixed in 1.1 rc5

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [July 26, 2003, 3:15pm UTC](https://forum.servoy.com/t/bug-pagebreakafteroccurrence/190/4 "2003-07-26T15:15:49Z")

</div>

Oke it is fixed, but everytime when I have just 1 record, there is coming an empty page afterwards,

In Filemaker if you have a form(layout) with, for example, has 3 records (in View as Form) If you go to Preview-mode, every record is printed automaticly on a new page! In Servoy, Record view is printed as if in List-view! The records don’t automaticaly starts on a new page!

Is this possible to fix??

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [July 28, 2003, 7:28am UTC](https://forum.servoy.com/t/bug-pagebreakafteroccurrence/190/5 "2003-07-28T07:28:59Z")

</div>

I think I have to be more specific.

I have a form (which is used for print/preview) that contains 2 pages.  
If I don’t select: pageBreakAcrossPageBounds of the BODY-PART, only the first page of each record is shown in the preview. So I have to select this property, to print/preview the second page too.

Only now the next record is not starting on top the page!  
This can be fixed, by selecting: pageBreakAfterOccurrence but than I always have an empty page at the end!

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [July 28, 2003, 8:59am UTC](https://forum.servoy.com/t/bug-pagebreakafteroccurrence/190/6 "2003-07-28T08:59:58Z")

</div>

The empty page is fixed in next build (behaviour is the same,still form view independent, our printing has nothing todo with the form view)
