|
' Open "lpt1" For Output As #1
' Print #1, "------欢迎惠顾绿洲大药房------"
' Print #1, " 机号os2 日期:" & Now
' Print #1, " 单据号:" & IDID & " 收款员:" & Me.收款员
' Print #1, "-------------------------------"
' Print #1, "药品名称 数量 售价"
' rst.MoveFirst
' Do Until rst.EOF
' n = Len(Left(rst("商品名称"), 7)) * 2
' m = Len(CStr(rst("数量")))
' Print #1, Left(rst("商品名称"), 7); Spc(20 - m - n); CStr(rst("数量")); Spc(5); CStr(rst("交易价"))
' rst.MoveNext
' Loop
' Print #1, "-------------------------------"
' Print #1, "收款:" & Me.收款 & " 找零:" & Me.找零 & " 合计:" & Me.合计 & "元"
' Print #1, "---欢迎下次光临绿洲大药房---"
' Print #1, " 咨询电话:6211530"
' Print #1,
' Print #1,
' Print #1,
' Print #1,
' Print #1, Chr(27) + "p" + Chr(0) + Chr(60) + Chr(255)
' Close #1
|
|