Expand my Community achievements bar.

Subform pagination to start on new page when printed

Avatar

Level 2

Hi,

I have created a flowed template, but when the user wants to print the form, certain subforms must start at the top of a new page. Any adivce would be helpfull

Andrew

4 Replies

Avatar

Former Community Member

On the object palette for the subform you can set th elocation of where you want the subform to appear ("on top of next page").

Paul

Avatar

Level 2

Thanks for the info, I know that from the objects pallet of the subform you can set the location of where you want the subform to appear.

I want it to appear "Following Previous" on the screen, but "Top of Next Page" when printing.

Regards

Andrew

Avatar

Former Community Member

You can't have it both ways .....there is not a unique setting for printing and screen.

Paul

Avatar

Level 2

Hi Paul,

I have managed to sort this one out with Java Code.

Preprint

Subform.break.before = "pageArea"

PostPrint

Subform.break.before = "";

This works fine.

The way that I found this was to set the subform to show on "Top of Next Page" and with the subform still selected looked at the XML Source and there was a reference to the code.

Thanks

Andrew