Solved

Fit text size to a table cell using MigraDoc

Posted on 2011-09-05
2
4,426 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 500 total points
ID: 36491906
0
 

Author Closing Comment

by:andre72
ID: 36493934
Thanks
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 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