when i print to a bluetooth printer (EXTECH S2500THS) with
- Code: Select all Expand view
local hOut := CreateFile( gd_PrinterPort, GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL )
cText+=.....
for n = 1 to Len( cText )
WriteByte( hOut, Asc( SubStr( cText, n, 1 ) ) )
next
return nil
some of the characters get lost (always other characters, sometimes only one, sometimes 2, 3 or 4). The printer is connected via Bluetooth seriell at COM8.
Must i configure something for bluetooth seriell communication at COM8 ?
Would it help, if i put a sleep in the WriteByte loop ? If yes, with which command ?