PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Jul 17, 2018 6:10 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 

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

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:

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

Reply with quote  
PostPosted: Mon Jun 26, 2017 2:21 pm 
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2825
Location: Cologne, Germany

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

See this post:

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.


silentbob wrote:
(image linking wasnt working :( )

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

Thomas Hoevel
PDFsharp Team

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