PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Oct 31, 2024 11:01 pm

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: Sat Apr 14, 2007 1:04 am 
Offline

Joined: Sat Apr 14, 2007 1:00 am
Posts: 4
I am trying to use MigraDoc to create a table. I think I have it figured out in general, but one of the columns causes the content in it to wrap. I did not specify any widths for the table or the columns. Is there a way to get the column to automatically size itself to its content (like HTML tables)?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Apr 17, 2007 12:37 am 
Offline

Joined: Sat Apr 14, 2007 1:00 am
Posts: 4
Alternatively, if there is no simple way to auto-size columns, is there an easy way to get how wide a piece of text will be when rendered so I could figure out from the content how wide to make the columns?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Apr 18, 2007 10:13 pm 
Offline
empira Employee
User avatar

Joined: Thu Oct 12, 2006 10:07 pm
Posts: 49
Location: Cologne, Germany
MigraDoc cannot auto-size colums. You can use XGraphics.MeasureString to calculate the text width and set the column width with this value.


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: Google [Bot] and 23 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group