PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 10:08 am

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
PostPosted: Mon Jun 26, 2017 1:44 pm 
Offline

Joined: Mon Nov 19, 2012 11:54 am
Posts: 16
Hi,

I would like to produce a pdf with 6 tables in a grid formation. 3 x 2 like the following


tb1 tb2 tb3
tb4 tb5 tb6

(image linking wasnt working :( )

I know I can set the left indent using the following code:

Code:
GMTable.Rows.LeftIndent = "-2cm"


But how do I set the vertical placement? Within the pdf there will be some text above the tables which will vary in height, just for info.

Thanks for any help offered


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 26, 2017 2:21 pm 
Offline
PDFsharp Guru
User avatar

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

To get the 3 x 2 arrangement you can add tables to a table.

See this post:
https://stackoverflow.com/a/36304148/162529


Do draw a table at an absolute position you can add the table to a `TextFrame` object.
But to get the 3 x 2 arrangement, I would probably prefer nested tables.

https://stackoverflow.com/a/44761875/162529


silentbob wrote:
(image linking wasnt working :( )

It works for me:
Attachment:
test4forum.png
test4forum.png [ 2.33 KiB | Viewed 3091 times ]

_________________
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: No registered users and 123 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