PDFsharp & MigraDoc Foundation

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

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: Dynamic cell sizing
PostPosted: Wed Nov 19, 2014 4:07 am 
Offline

Joined: Tue Dec 08, 2009 10:05 am
Posts: 19
So I've got a table displaying exactly like I'd like it to, but customer asked to allow for columns to be hidden. Of course hiding the columns causes the table to shrink in width if I specify column width.

My question is there anyway to set the table width and set SOME columns widths, and let migradoc take care of the rest, or base it on percentages or something along those lines?

Thanks in advance!


Top
 Profile  
Reply with quote  
 Post subject: Re: Dynamic cell sizing
PostPosted: Wed Nov 19, 2014 8:59 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
Hi!
ronnyek wrote:
My question is there anyway to set the table width and set SOME columns widths, and let migradoc take care of the rest, or base it on percentages or something along those lines?
AFAIK this is left for your code.

MigraDoc is based on the Word model and does not support percent values (like HTML) or star sizes (like WPF).

I wrote code that does that. My code supports a simple "star sizing" where a "*" marks columns that can be adjusted.
Users can set page margins. Table width will be adjusted to the available space. Column widths will be adjusted - either all "*" columns if there are any, otherwise all columns.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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: No registered users and 175 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