PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Sep 07, 2024 11:20 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Apr 22, 2013 9:27 pm 
Offline
User avatar

Joined: Sun Apr 22, 2012 3:47 pm
Posts: 26
I have an invoice document that i am creating with Migradoc that could have several lines up to 36 per page. I have a 3 floating textframes that will show only if data that goes in them is detected. (customer note,etc..) that float down the page as invoice lines are added. I have the text frame properties RelativeHorizontal set to RelativeHorizontal.Margin and RelativeVertical set to RelativeVertical.Line so as the number of lines grows, these 3 textframes basically float down the page. I also have a couple textframes that stay at the bottom of the body that should only go to the next page if some info comes down far enough. I want them to stay down there at those positions too even if a extra page is generated without any invoice lines. I have RelativeHorizontal set to RelativeHorizontal.Margin and RelativeVertical set to RelativeVertical.Margin for both of these text frames. The problem I'm having is that on the first page, if any of the other text frames that I have in the body that float down as lines are added, once they get to the two frames at the body, they overwrite these 2 frames until the actual lines of invoice data come down to the position of these 2 text frames, then they go to the next page. How do I keep the floating text frames from over writing the static position of the 2 bottom text frames? I've attached a screen shot.


Attachments:
textframes problem.JPG
textframes problem.JPG [ 88.88 KiB | Viewed 4160 times ]

_________________
Thanks,
George
Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 23, 2013 8:14 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3109
Location: Cologne, Germany
Free floating text frames do not exist for the MigraDoc layouter and it is up to you to prevent them from overlapping.
You could increase the bottom margin. If all invoice items only need a single line, you can force a page break after a certain number of items. Not ideal, of course.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 23, 2013 12:41 pm 
Offline
User avatar

Joined: Sun Apr 22, 2012 3:47 pm
Posts: 26
Quote:
Free floating text frames

Right, I meant that as the invoice lines fill the page, they display after the lines. I guess I could put the 2 bottom frames within the footer section. That would probably work the way I wanted it to then.. I'll try that..

_________________
Thanks,
George


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 95 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