PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 10:05 pm

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
 Post subject: Invoice Table Overflow
PostPosted: Mon Jun 03, 2013 7:07 am 
Offline

Joined: Mon Jun 03, 2013 6:50 am
Posts: 1
Hello!

I'm trying to produce invoices with MigraDoc but I've run into some trouble.
The Header/footer works perfectly fine but the Table has some sort of.. tricky mistakes.

Basicly what it does is, that when you get an invoice with almost 1 full page or 2 pages, it works perfectly fine ( see below ).

Red = TextFrame
Green = Footer

Almost Full(working)
Image

Two Pages(working)
Image

But now for the screwed up part..

Image

When the table fills enough to not open a second page, it just overwrites the TextFrames without opening a second page. Is there a way to tell MigraDoc to open a new page with an layout like in the second screen?

Best wishes
tschilloah


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 03, 2013 9:08 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi!
tschilloah wrote:
Is there a way to tell MigraDoc to open a new page with an layout like in the second screen?
Different solutions come to mind:
  1. Make bottom margin large enough to "protect" the textframes (so the summary area will be empty on all but the last page)
  2. Add the page breaks manually (will not work if descriptions can be one or more lines long)
  3. Add the summary without textframes (vertical position will vary; KeepWthNext can be used to keep it on one page)
  4. Render once with a dummy paragraph below the table, check the vertical position of the dummy paragraph; if the dummy paragraph is too low, add a pagebreak and render again (this will lead to big table on first page and summary only on second page)
Solution 1 is easy, but leaves a big bottom margin on preceding pages. Solution 4 is slightly better, but more complicated.
Solution 3 looks like a good one (if variable vertical position is acceptable).

See here if you want to try solution 4:
viewtopic.php?p=1960#p1960

_________________
Regards
Thomas Hoevel
PDFsharp Team


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 346 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