PDFsharp & MigraDoc Forum
https://forum.pdfsharp.net/

Keeping 2 tables on the same page if it will fit.
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2198
Page 1 of 1

Author:  g2012 [ Tue Oct 30, 2012 9:43 pm ]
Post subject:  Keeping 2 tables on the same page if it will fit.

Hi,

I have created a pdf document that creates 2 tables. I would like to setup the page so that if both tables fit on the page to put them on 1 page but not to have a page break between the tables.

Is there any way to keep the tables together?

Thanks,
Gloria

Author:  Thomas Hoevel [ Wed Oct 31, 2012 9:55 am ]
Post subject:  Re: Keeping 2 tables on the same page if it will fit.

Hi, Gloria,

No way I know. If you know they fit you can add a pagebreak before the first table.
Maybe like this: Render twice (with and without pagebreak) and if the pagecount does not change, keep the pagebreak.

Author:  g2012 [ Wed Oct 31, 2012 12:18 pm ]
Post subject:  Re: Keeping 2 tables on the same page if it will fit.

Thanks!

I will try that.

Gloria

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/