S
Siv
Hi,
I am trying to find a wrapping routine for text and not having much luck.
The reason I need one is that I am producing a report where the text that
was stored in the database was written into a multi-line text box, so it
contains long strings of text where the user allowed the wrapping of the
text box to wrap the text within its confines and here and there, they will
have entered CRLFs where they have pressed ENTER to push in a break between
paragraphs. This has always caused me problems when writing this stuff out
to a report as I have a certain width on the printed page and usually a
certain amount of depth. There must be a .NET framework function that can
process a piece of text and insert the relevant breaks that doesn't split
words and constrains it within a given rectangle that you specify.
Can anyone help me as I can't find anything??
I am trying to find a wrapping routine for text and not having much luck.
The reason I need one is that I am producing a report where the text that
was stored in the database was written into a multi-line text box, so it
contains long strings of text where the user allowed the wrapping of the
text box to wrap the text within its confines and here and there, they will
have entered CRLFs where they have pressed ENTER to push in a break between
paragraphs. This has always caused me problems when writing this stuff out
to a report as I have a certain width on the printed page and usually a
certain amount of depth. There must be a .NET framework function that can
process a piece of text and insert the relevant breaks that doesn't split
words and constrains it within a given rectangle that you specify.
Can anyone help me as I can't find anything??