hi every one i try to make Customer Receipts using PrintDocuments Control and now i want to display the footer on Customer Receipts. The Foter Text stored in a string type Variable.
String Fotertex="ABC DEF GHIJK LMNOP QRSTUVWXYZ AAA BBBBBBB ABCD";
but i use thermal printer for Customer Receipts.
and the text that display only in foter is "
ABC DEF GHIJK LMNOP
"
Now i want it automatically break the line and the renaming Text "
QRSTUVWXYZ AAA BBBBBBB ABCD
" Display on Next line.
i simply want if the text Character greater then 19 it break the line and printer the renaming text in Next line.
Thanks in advance
What I have tried:
i try this but its not working i dont know why its not working
if (Fotertex.ToString().Length > 19)
{
graphics.DrawString(Fotertex.ToString().Substring(0, 19), myfont, Brushes.Black, new Point(10, startY = startY + 40));
}