DrawString

iebidan

Contributor
Joined
Feb 6, 2003
Messages
484
I'm using the PrintDocument Class to print some text using the Drawstring, but when the line is too long it doesn't go to the next line, how can I make it print in the correct, like a wrap to the text so it prints correctly???????
 
You can specify a bounding rectangle when you call DrawString, the text should wrap inside that.
 
But if you don't want the text wrapped to next line? I want the part of the text that don't fit in the rectangle/cell (in datagrid) to vanish...
Then I can show the full text at OnMouseOver event!

/Rickard
 
Back
Top