Page breaks within html output

Does anyone know if Servoy HTML supports page break functions, especially regarding tables.

There is a function called: table
{page-break-inside: avoid}

Which should avoid an html table breaking across a page.

I have put this into a style sheet as:

table
{
page-break-inside: avoid
}

on the form where my html large output field is, but it doesnt seem to work.

Has anyone used this function successfully and if so how?

David

Hi David,

page-break-inside is a a CSS2 property.
The SUN HTML render engine (that Servoy uses) doesn’t support CSS2.
In fact it supports only a subset of CSS1.

The only way to handle pagebreaks is to do it yourself.
I.e. you need to keep track of the table rows you create and their height. With that information you can calculate where it should break.

It’s not easy but I know it can be done. James Garfield and his colleagues at Adblocks made such a thing for their Adblocks solution.
Or if you need to do a lot of (custom) reporting then check out the Jasper Reports plugin for Servoy. Contact Servoy for that.

Hope this helps.