I'm trying to print a receipt from a window Form using c#, it prints fine with only 1 row in the listview, but when more rows are added, they all print on the same line on the paper
How can I make it print it normally, one row below the other
here is the code I used
for (int i = 0; i < listView1.Items.Count; i++)
{
int ii = 1;
ii++;
graphics.DrawString(" " + listView1.Items[i].SubItems[0].Text + listView1.Items[i].SubItems[1].Text + listView1.Items[i].SubItems[2].Text + listView1.Items[i].SubItems[3].Text, new Font("Arial Bold", 11),
new SolidBrush(Color.Black), startX, startY + Offset);
}
Offset = Offset + 20;