PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 9:44 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
 Post subject: Double Border On Table
PostPosted: Mon Mar 21, 2022 2:49 pm 
Offline

Joined: Wed Mar 16, 2022 4:40 pm
Posts: 5
Hi,
What is the best way to create a "double border" on a table. I have seen some old posts here (from 2006) saying it wasnt YET supported, but hoping it is now. However, looking at the options in the EDGE and BORDERSTYLE classes, I am not seeing anything. So then I was thinking that I could just create a slightly larger "outer" table, add a single column/row/cell to that and then set a single border there, then add my "main" table that has a single border to the CELL in the "outer" table, but is that really the best way? I found the below post, which seems to indicate that this solution really wont work well due to Cells not page breaking within a cell.

https://stackoverflow.com/questions/363 ... ted-tables


Has this "double border" for a table been accomplished by anyone?

P.S. By "double border" I just mean two parallel single border lines, with a small space/gap between them.


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 21, 2022 9:28 pm 
Offline

Joined: Wed Mar 16, 2022 4:40 pm
Posts: 5
As an update, I was able to get a "double border" by nesting my main table within a cell in an outer table and tweaking padding and width a bit, but as the link provided above indicates, the problem is that when my inner table is longer than will fit on the remaining page space, it breaks to a new page regardless of how much space there is still available on the current page. Apparently it doesnt want to "split" the cell to the next page. I have tried setting the KeepTogether properties on both the outer and inner tables, but the cell functionality seems to take precedence.

Any ways around this or am I just taking the wrong approach completely?

Thanks


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: Google [Bot] and 136 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