本文介绍了VB.net pos收据打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!



我有这样的datagridview:



ID | Items Name | QYT |价格|总和|

--------------------------------------

1 |可口可乐| 2 | 3.5 | 7.00 |

2 | chesseburger | 2 | 6.0 | 12.00 |











我想在收据中加入这个吗?



i有代码但是这样做:





1 |可口可乐| 2 | 3.5 | 7.00 |

2 | chesseburger | 2 | 6.0 | 12.00 |

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想要这样的收据:



项目字符串mus最多15个字符,价格4个字符,数量。 4个字符加4个字符!



但我不知道怎么做!

plz帮助我!







抱歉我的英文!


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!

推荐答案


If CType(dgTransactionList.Item(k, 0), System.String) = "True"





没有想法 dgTransactionList 它是什么意思。



请用datagridview1回复我收据打印。



我的电子邮件ID< REMOVED> @ gmail.com



等待您的快速回复



No Idea of "dgTransactionList" what it mean.

Please reply me with the datagridview1 to receipt print.

my email id <REMOVED>@gmail.com

waiting for your quick reply



这篇关于VB.net pos收据打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 00:43