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

Inter Cell Distance In Table
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4035
Page 1 of 1

Author:  IRlyDunno [ Tue Oct 29, 2019 11:37 am ]
Post subject:  Inter Cell Distance In Table

I'm trying to achieve a look on my tables, that doesn't seem to be possible in MigraDoc, but I want to try asking here before giving up.

So, First of all I'm using nested tables, meaning I have tables inside table Cells.

Attachment:
File comment: What I need
TablePositioning.png
TablePositioning.png [ 13.26 KiB | Viewed 6096 times ]

And I need to draw something akin to this image, where the tables are all separated. Those tables are all cells inside a table parent that has 3 columns.

But, what I am getting is this:
Attachment:
File comment: FailedTry1
TablePositioning_FirstTry.png
TablePositioning_FirstTry.png [ 23.49 KiB | Viewed 6096 times ]


in this one I'm using the
Code:
Table.LeftPadding
and
Code:
Table.RightPadding
trying to see if it would work giving space between the inner cells (tables), to no avail.

The best I managed was using the
Code:
Borders.Left.Width = 5
and
Code:
Borders.Right.Width = 5
that gave this result:
Attachment:
File comment: FailedTry2
TablePositioning_SecondTry.png
TablePositioning_SecondTry.png [ 18.09 KiB | Viewed 6096 times ]

which, as you can see, isn't perfect, but its close.

I can't add nor subtract objects from the table, nor can I add columns to the parent table, I can, altough, change the properties objects inside the table, except the padding, distance, etc properties.

So I wanted to know if there is any property that I can change to make this happen.

P.S: I would Also Like to add that, this is not as important as the main question, because I can live without it, but, is there any way to add padding/margin/space top/bottom to the cell? something like line spacing, to make it 'taller' ??

Some kind of help or guidance would be appretiated.

Author:  Thomas Hoevel [ Tue Oct 29, 2019 12:06 pm ]
Post subject:  Re: Inter Cell Distance In Table

IRlyDunno wrote:
Those tables are all cells inside a table parent that has 3 columns.
I would create a parent table with 5 columns and use the two new dummy columns to add space between the three visible tables.

Author:  IRlyDunno [ Tue Oct 29, 2019 12:36 pm ]
Post subject:  Re: Inter Cell Distance In Table

Thomas Hoevel wrote:
I would create a parent table with 5 columns and use the two new dummy columns to add space between the three visible tables.


I would like too, but, as I said in the post, I can't change the number of columns, the problem would be much simpler if I could. isn't there any other alternative?

Author:  Thomas Hoevel [ Tue Oct 29, 2019 4:28 pm ]
Post subject:  Re: Inter Cell Distance In Table

IRlyDunno wrote:
but, as I said in the post, I can't change the number of columns
Are there technical reasons or political reasons that prevent this?

How about adding dummy columns to the nested tables? Or is that also verboten?

Author:  IRlyDunno [ Wed Oct 30, 2019 9:48 am ]
Post subject:  Re: Inter Cell Distance In Table

This problem ocorred on a bunch of pdf methods that together could make custumizable pdfs, so the actual code that wrote the pdfs couldn't be changed, but I managed to talk with my bosses and showed them that we actually needed to put a column at each side otherwise it wouldn't work.

as such, I resolved my problem, thank you for your help!

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