[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Fit text size to a table cell using MigraDoc

Posted on 2011-09-05
2
Medium Priority
?
5,440 Views
Last Modified: 2013-12-17
Hi,

I create a table using the Migra Doc library.
This works fine at all and I can add a text to a cell of my table:
Table table = section.AddTable();
Column column = this.table.AddColumn("3cm");
column.Format.Alignment = ParagraphAlignment.Left;
Row row = table.AddRow();
row.Cells[0].AddParagraph("ThisisaverlongwordIonlyusefortesting!");

This will only write a very long string and at the cell border it still continue writing ...
How can I truncate the string that it fits into the cell and never overwrite the borders?

Thanks

Andre
0
Comment
Question by:andre72
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 36491906
0
 

Author Closing Comment

by:andre72
ID: 36493934
Thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question