PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jun 16, 2024 5:40 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jul 24, 2013 9:06 am 
Offline

Joined: Thu Jul 18, 2013 12:40 pm
Posts: 4
Hello!

is it possible to set the with for every cell independently from the column width? I attached a screenshot.

I think it would only be possible by using nested tables. Am i right?

Best regards
Stefan


Attachments:
Screen Shot 2013-07-24 at 10.42.15 AM.png
Screen Shot 2013-07-24 at 10.42.15 AM.png [ 5.8 KiB | Viewed 4923 times ]
Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 24, 2013 10:04 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
Hi!

The column width is fixed for all cells. But you can get it without nested tables: use MergeRight to have a cell span several columns.

With your illustration, you would need "Column2a" and "Column2b" for a total of 4 columns (0 to 3).
For heading and the first row, set MergeRight=1 for Cells[2].
For "Row3", set MergeRight=3 for Cells[0].
For "Row4", set MergeRight=1 for Cells[1].

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 24, 2013 10:16 am 
Offline

Joined: Thu Jul 18, 2013 12:40 pm
Posts: 4
Hi!

Thanks for the quick answer. I think it wouldn't be possible for me. With MergeRight I won't be able to freely set the cell with.

Example: I have four columns with a 2cm width. A merged column could be 4cm, 6cm or 8cm. If i want a merged column of 5,4cm i would need a column for every mm. I think it would be a performance issue?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 157 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