Hello !
i have a datagridview like this:
ID |Items Name | Qyt.|Price| Sum|
--------------------------------------
1 |Coca cola | 2 | 3.5 | 7.00|
2 |chesseburger | 2 | 6.0 |12.00|
.
.
.
.
I want to brint this in a receipt?
i have a code but what is doing is this:
1 |Coca cola | 2 | 3.5 | 7.00|
2 |chesseburger | 2 | 6.0 |12.00|
Dim line As String
Dim c As Integer = 70
For Each row As DataGridViewRow In DataGridView.Rows
line = String.Empty
For Each cell As DataGridViewCell In row.Cells
line += cell.Value.ToString() & vbTab
Next
c = c + 20
g.DrawString(line, myfont, Brushes.Black, 10, c)
Next
i want to make a receipt like this:
that the item string mus have maximum 15 characters, price 4 caracters,qty. 4 caracters sum 4 caracters !
but i dont know how!
plz Help me!
sorry for my english!