PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Nov 17, 2019 10:34 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Oct 29, 2019 11:37 am 
Offline

Joined: Tue Aug 06, 2019 10:45 am
Posts: 20
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 777 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 777 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 777 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.


Last edited by IRlyDunno on Tue Oct 29, 2019 2:35 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 29, 2019 12:06 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3004
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 29, 2019 12:36 pm 
Offline

Joined: Tue Aug 06, 2019 10:45 am
Posts: 20
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?


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 29, 2019 4:28 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3004
Location: Cologne, Germany
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?

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 30, 2019 9:48 am 
Offline

Joined: Tue Aug 06, 2019 10:45 am
Posts: 20
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!


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

All times are UTC


Who is online

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