Using HP Printer Escape Sequences (aka Printer Passthrough Codes) in VB.Net 
Author Message
 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?



Wed, 23 Jun 2004 04:46:01 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How To send escape sequences to an HP Printer:

2. Using the Escape (..PASSTHROUGH... Printer seq

3. Help with PASSTHROUGH printer ESCAPE

4. printing escape sequences for direct printer control to print micr on checks

5. Printer Escape Sequences

6. Escape Sequences for Printer

7. Sending escape sequences to the Printer

8. Escape Sequence with Printer Object or API

9. Sending Escape Key sequences to a Serial Printer

10. Escape sequences to printer

11. Sending escape sequences to PCL printer ??

12. Escape sequence and Printer (Vbasic 4.0)

 

 
Powered by phpBB® Forum Software