Te adjunto un mensaje que aparecio en su dia:
Controlar la impresión con un API a una impresora termica ( DATAMAX )
Por amorales a las 00:15 del 21-09-2000
Tengo el siguiente problema :
Estoy intentando controlar la impresión hacia una impresora térmica con un API , con el siguiente pedazo de código.
set library to sys(2004)+"foxtools.fll" additive
iBuildCommDCB = RegFn("BuildCommDCB","CC","I")
if iBuildCommDCB < 0
wait window "No se pudo abrir la función BuildCommDCB"
endif
iOpenComm = RegFn("OpenComm", "CII", "I")
if iOpenComm < 0
wait window "No se pudo abrir la función OpenComm"
endif
iCloseComm = RegFn("CloseComm", "I", "I")
if iCloseComm < 0
wait window "No se pudo abrir la función CloseComm"
endif
iWriteComm = RegFn("WriteComm", "ICI", "I")
if iWriteComm < 0
wait window "No se pudo abrir la función WriteComm"
endif
iClearCommBreak = RegFn("ClearCommBreak","I","I")
if iClearCommBreak < 0
wait window "No se pudo abrir la función ClearCommBreak"
endif
iFlushComm = RegFn("FlushComm","II","I")
if iFlushComm < 0
wait window "No se pudo abrir la función FlushComm"
endif
iReadComm = RegFn("ReadComm","I@CI","I")
if iReadComm < 0
wait window "No se pudo abrir la función ReadComm"
endif
iGetCommError = RegFn("GetCommError","IC","C")
if iGetCommError < 0
w