I'm new on this mailing list, so Hi at all J
I Develop a Document Generation Solution with .NET and the OpenXml SDK 2.
Now I fill Tables and other stuff dynamically from a Data source
and one Requirement is that some Elements must stay together (The Elements
are surrounded by an SDTBlock by the way) on a Page. Another Requirement is
that some Contents must Begin on a new Page. A PageBreak is possible but not
in all Situations. Say You insert Statically a PageBreak before each of
these Blocks. But what would happen if the last page is full, you add the
PageBreak and than.Bang.Right! You get an empty Page ;(
The Solution for my problem would be an Algorithm for calculating the
(current Height of all elements on the actual page + the current height
of the elements that should be added) > the page height = insert
PageBreak or whatever :D
So I think The OpenOffice Project implements some kind of that Algorithm and
I want to know:
1.:Is There such an Algorithm in the OpenOffice Project?
2.: Is There a Chance for me to Port the algorithm to .Net?
3.:And last but not least, Where exactly can I find the implementation?
Best Regards,
Mischi