lprint chr$(0); !printerDC = @prthdc% escSeq$ = chr$(27) + "(s1S This is some italic text" escLen = len(escSeq$) inData$ = chr$(escLen) + chr$(escLen / 256) + escSeq$ calldll #gdi32, "Escape", printerDC as ulong, _PASSTHROUGH as long, _ escLen+2 as long, inData$ as ptr, 0 as long, ret as long lprint "The quick brown fox jumps over the lazy dog." dump
SUB OpenDrawer lprint chr$(0); !printerDC = @prthdc% escSeq$ = chr$(27)+chr$(7)+chr$(11)+chr$(55)+chr$(7) escLen = len(escSeq$) inData$ = chr$(escLen) + chr$(escLen / 256) + escSeq$ calldll #gdi32, "Escape", printerDC as ulong, _PASSTHROUGH as long, _ escLen+2 as long, inData$ as ptr, 0 as long, ret as long dump END SUB