PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Mar 29, 2024 1:35 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: Wordwrap options
PostPosted: Sat May 28, 2011 12:36 am 
Offline

Joined: Sat May 28, 2011 12:28 am
Posts: 1
Hi, I'm banging my head against my desk and I'm hoping somebody has an answer to my problem :)

I have a table with plain text being inserted into the cells as paragraphs. I'd like to disable creating new cells for overly long text as well as having the text wrap -- I just want to truncate them.

Is there a way to do this? Because I am not seeing it...


Top
 Profile  
Reply with quote  
 Post subject: Re: Wordwrap options
PostPosted: Mon May 30, 2011 7:05 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
There's a simple way:
Code:
if(str.Length > 255)
  str = str.SubString(255);


Sorry, but MigraDoc cannot truncate the text automatically. So cut the string before you pass it to MigraDoc.

_________________
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: Bing [Bot] and 133 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