Hi all,
How i can print a lengthy string using C#?
im using
myReader = new StringReader(strText);
PrintDocument p = new PrintDocument();
p.PrintPage += delegate(object sender1, PrintPageEventArgs ev)
{
ev.Graphics.DrawString(
};
try
{
p.Print();
}
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.
thanks
Hoping for your comment and reply..