PDFsharp & MigraDoc Foundation

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

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Jul 16, 2009 2:47 pm 
Offline

Joined: Thu Jul 16, 2009 2:38 pm
Posts: 16
Hi,
i want add two separate tables at footer section (MigraDoc.DocumentObjectModel)
but with this pseudo-code:

Code:
setup table1
section.footers.primary.add(table1)

setup table2
section.footers.primary.add(table2)



the two tables are superimposed.

How can i do it?

Thanks,
Valeriano


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 16, 2009 3:09 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi, Valeriano!

To have both tables side by side:
Put one table into a TextFrame and position that TextFrame to the right:
Code:
TextFrame tf = footer.AddTextFrame();
tf.RelativeHorizontal = RelativeHorizontal.Page;
tf.RelativeVertical = RelativeVertical.Paragraph;
tf.Left = ShapePosition.Right;
tf.WrapFormat.Style = WrapStyle.Through;

Also set the Width of the TextFrame.

To have the second table after the first table:
No idea, but I'd try putting both tables into one Textframe.

Maybe one table is enough (using MergeRight or MergeDown in some cells)?!?!?

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 16, 2009 3:18 pm 
Offline

Joined: Thu Jul 16, 2009 2:38 pm
Posts: 16
The two tables must be arranged vertically (occupy the entire width of the page)

Yes in the first table i merge some cell


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 20, 2009 3:44 pm 
Offline

Joined: Thu Jul 16, 2009 2:38 pm
Posts: 16
There isn't solution?


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 21, 2009 11:16 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Solutions here: viewtopic.php?p=1958#p1958

To have the second table after the first table:
No idea, but I'd try putting both tables into one Textframe.

Maybe one table is enough (using MergeRight or MergeDown in some cells)?!?!?

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 24, 2009 8:00 am 
Offline

Joined: Thu Jul 16, 2009 2:38 pm
Posts: 16
Hi,

structures are different and while the former is fixed, the second can change according to the document to be printed.

i try use two textframe....

valeriano


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 423 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