PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 7:04 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Sep 23, 2016 2:21 pm 
Offline

Joined: Fri Sep 23, 2016 2:11 pm
Posts: 1
I am adding a table to the "LastSection" of a document.

Code:
document.LastSection.Add(myTable);
]

The problem is that sometimes the data in one of the rows can be very large. In this case one row of the table is larger than one page of the document. Instead of breaking and continuing onto the next page, it just overflows past the footer and off the page. So I am loosing data.

How do I make it break to a new page if the row makes it go past the page?


Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 23, 2016 9:40 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 905
Location: CCAA
Hi!
russn wrote:
How do I make it break to a new page if the row makes it go past the page?
Make sure that every row fits on a single page as MigraDoc currently does not break table rows.

Or create an RTF file and use Word to create a PDF.

If a single row needs more than one page then maybe a table does not really make sense. Maybe you can find a better presentation without tables.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 43 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group