PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Paragraph text in table cell overflowing out of PDF report https://forum.pdfsharp.net/viewtopic.php?f=2&t=2140 |
Page 1 of 1 |
Author: | naveenkk [ Fri Sep 14, 2012 6:10 am ] |
Post subject: | Paragraph text in table cell overflowing out of PDF report |
Hello, I have a created a very simple report using PDF Sharp and Migra Doc dlls found in WPF. I have a table created using MigraDoc.DocumentObjectModel.Tables.Table. I have added 4 columns using AddColum and then added Rows and Cells. Each of the cell is populated with a Paragraph element with text fecthed from DB. One of the cell has large text without spaces in it because of which the text overflowed outside of the report. I have not found any option for setting to the Paragraph element to forcibly break at the Table border in the report. Please suggest me some options. Regards, Naveen |
Author: | () => true [ Fri Sep 14, 2012 9:35 pm ] |
Post subject: | Re: Paragraph text in table cell overflowing out of PDF repo |
Hi! MigraDoc will break long words at soft hyphens (Alt+0173). So parse the paragraph text for extremely long words and insert soft hyphens (e.g. after the 10th, 15th, 20th, 25th, ... character). |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |