How i can print a lengthy string using C#?
myReader = new StringReader(strText);
PrintDocument p = new PrintDocument();
p.PrintPage += delegate(object sender1, PrintPageEventArgs ev)
catch (Exception ex)
throw new Exception("Exception Occurred While Printing", ex);
here using ev.Graphics.DrawString() method but..
its getting error TextWrapping is not occuring to this..
for that issue i just added new RectangleF() inside Drawstring(//here like new RectangleF(00,00,00,00)
>00 means its only for demo purpose.
after this RectangleF()implementation its only print one page and it will get wrapped output but its printing occur only for one page
if more clear will tell you detail.
Hoping for your comment and reply..