I want to make the longest string value (it probables more
than 300 words.) to more rows to print it using
printDocument.
How do i do it like WORD that it auto cut string value at
space character.
Hi there,
I'm not quite sure that I understand what you are after. A string
doesn't get *cut*, it contains characters to make a new line, space etc.
these characters are used in visual basic by using constants. What are you
displaying the string in? a text box? a rich text box? Try the following to
add a new line to a string...
Dim mystring as string = "This is a string." & ControlChars.CrLf & "This is
on the next line"
The only reason you actually get new lines, spaces etc is down to the
contol that your putting the string into, in essence a string is simply a
load of values joined together, for ASCII the values are bytes in the range
of 0 to 255. Look up "Print and display constants" in the documentation
Nick.
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."
Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\