Yes i Tried this but how to position string into Rectangle?
while(line != null)
{
ev.Graphics.DrawString(line, myFont,
Brushes.Black,(RectangleF)myRectangle)
}
but every line is written on the above so everythink is melt
at the left,top corner of the rectangle. How to increment the
position of the next line?
ev.Graphics.DrawString(line, printFont, Brushes.Black,
leftMargin, yPos, format);
How to make drawned string to fit into a container
and brake into a new line content that doesnt fit?
You should use Graphics.DrawString() overload that takes a RectangleF
rather than Point or a pair of ints - e.g. DrawString(Stirng, Font,
Brush, RectangleF). Then, the text will be wrapped to fit the
rectangle specified.