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

TextFrames within the page body
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2414
Page 1 of 1

Author:  ghendric [ Mon Apr 22, 2013 9:27 pm ]
Post subject:  TextFrames within the page body

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 4163 times ]

Author:  Thomas Hoevel [ Tue Apr 23, 2013 8:14 am ]
Post subject:  Re: TextFrames within the page body

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.

Author:  ghendric [ Tue Apr 23, 2013 12:41 pm ]
Post subject:  Re: TextFrames within the page body

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

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