|
Call StartDocPrinter(lhPrinter, 1, MyDocInfo)
Call StartPagePrinter(lhPrinter)
printData = Chr$(&H1B) & "@"
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = Chr$(&H1B) & Chr$(33) & Chr$(1) '!字体大小
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = Chr$(&H1B) & Chr$(51) & Chr$(35) '3行间距
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = Chr$(32) & Chr$(32)
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = "单号: " & "" & strOrderNo & ""
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = Chr$(10)
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = Chr$(32) & Chr$(32)
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = "台号:" & "" & strTable & ""
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = Chr$(10)
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = Chr$(32) & Chr$(32)
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = "时间:" & "" & strOrderDate & ""
Call WritePrinter(lhPrinter, ByVal printData, LenB(StrConv(printData, vbFromUnicode)), lpcWritten)
printData = Chr$(10) |
|