PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat May 04, 2024 2:28 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Sep 07, 2010 7:37 am 
Offline

Joined: Tue Sep 07, 2010 6:51 am
Posts: 2
Hello

I am toatly new to MigraDocs and PDF, just started playing around with MigraDoc invoice sample.
The table gets in front of the address. Even though I think I have followed the example closely.

I want the table element to start like 10cm from top.
So I am looking for a position setting/property for the MigraDoc Table that can do this. Help appreciated.

Thanx
L4ngely


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 08, 2010 8:23 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 340
L4ngley wrote:
The table gets in front of the address.

Normally everything is formatted from top to bottom - normal items will not overlap.

Exceptions are header and footer - it's up to you to reserve enough space for header and footer.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 09, 2010 6:52 am 
Offline

Joined: Tue Sep 07, 2010 6:51 am
Posts: 2
Neither the table or the address paragraph is the heading or footer, but table overlaps (starts above the paragraph/addressframe)
Attachment:
File comment: Entire Firste page also showing footer
migra_large.png
migra_large.png [ 175.85 KiB | Viewed 7269 times ]


This shows the problem even better:
Attachment:
File comment: Zoomed in on problem
migra.png
migra.png [ 73.86 KiB | Viewed 7269 times ]


Might be better to position the address elements in a table above the other table?...


To better understand MigraDoc I would like to know why this is happenening...


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 13, 2010 2:31 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
L4ngley wrote:
Neither the table or the address paragraph is the heading or footer, but table overlaps (starts above the paragraph/addressframe)

Yes, it's a feature, not a bug.

The address is in a textframe at a fixed position (for use with windowed envelopes).
You must take care that the table starts below that textframe - otherwise they will overlap which is then a feature and not a bug.

Add a paragraph before the table and set the space:
Code:
paragraph = section.AddParagraph();
paragraph.Format.SpaceBefore = "8cm";

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

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