Wrap String in MatrixCellDescriptor

Dear Board,

I need to wrap long text in MatrixCellDescriptor into two or more lines. I enabled already the WordWrap true property:

tableCell = (FastReport.Table.TableCell)matrix.Rows[j][i];

tableCell.WordWrap = true;

tableCell.Wysiwyg = true;


But text is cropped after the defined cell width.

I already tried to use "Environment.Newline" or "\n" in the string, but nothing worked for me.

So please I need some hint to get the long string wrapped to two or more lines.


Thank you!

Sophie

Comments

  • Ok Guys,

    you can use Environment.NewLine for force the linebreak, but you need to adjust the height of the rows:

               foreach (TableRow row in matrix.Rows)

               {

                   row.AutoSize = true; // or the different height properties as you like or need

               }

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.