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

Table row HeadingFormat and different text
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2503
Page 1 of 1

Author:  logycon [ Thu Jul 04, 2013 6:31 pm ]
Post subject:  Table row HeadingFormat and different text

Hello,

Let's say I have a long table in which the first row is the header (HeadingFormat = true). In MigraDoc, would it be possible to display different text on the first page and on subsequent pages?

E.g.

Title row text: "Table 1"

<page break>

Title row text: "Table 1 (Continued)"

Thanks in advance.

igor

Author:  Thomas Hoevel [ Mon Jul 08, 2013 9:22 am ]
Post subject:  Re: Table row HeadingFormat and different text

Hi!

This is not yet possible.
Page headers could be an option - they support a different first page header.

Author:  logycon [ Mon Jul 08, 2013 11:25 am ]
Post subject:  Re: Table row HeadingFormat and different text

Thanks, Thomas.

Unfortunately, header approach would not work as there are multiple tables in the document, any of which could go to next page(s).

No problem, I got it implemented it by hacking the code a little bit (keeping track of starting pages of all tables in the document, title rows, etc.)

Thanks for the excellent library!

igor

Author:  Thomas Hoevel [ Mon Jul 08, 2013 12:09 pm ]
Post subject:  Re: Table row HeadingFormat and different text

logycon wrote:
Unfortunately, header approach would not work as there are multiple tables in the document, any of which could go to next page(s).
The Headers are a property of the section and you can start a new section for every new table (I may be wrong, but I think that every new section has to start on a new page).
Headers are designed for chapter titles, not table headers - but they can also be used for multiple tables in a document.

Author:  logycon [ Mon Jul 08, 2013 12:15 pm ]
Post subject:  Re: Table row HeadingFormat and different text

Understood. The layout I need must have a single section - no new page starts :\

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