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

Migradoc - vertical alignment of tables
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3612
Page 1 of 1

Author:  silentbob [ Mon Jun 26, 2017 1:44 pm ]
Post subject:  Migradoc - vertical alignment of tables

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

Author:  Thomas Hoevel [ Mon Jun 26, 2017 2:21 pm ]
Post subject:  Re: Migradoc - vertical alignment of tables

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

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