
Using HP Printer Escape Sequences (aka Printer Passthrough Codes) in VB.Net
Is it possible to use HP Printer Escape Sequences (aka
Printer Passthrough Codes) in VB.Net? Our current code
relies heavily on passthroughs (which are sent to the
Printer.hdc object) in our cutom report printing because
of speed considerations due to their graphical nature. e.g:
Public Declare Function EscapeCodes Lib "gdi32"
Alias "Escape" (ByVal hdc&, ByVal nEscape&, ByVal nCount&,
ByVal InData$, ByVal lpOutData&) As Long
pcl_Escape_Tmp = Chr$(Len(DataToPrint) Mod
256) & Chr$(Len(DataToPrint) \ 256) & DataToPrint
Printer.CurrentY = ciZero
Printer.Print vbNullString
EscapeCodes Printer.hdc, cPASSTHROUGH, 0,
pcl_Escape_Tmp, ByVal 0&
How would I do this in VB.Net?