PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 25 → WX - Impressora Zebra
WX - Impressora Zebra
Iniciado por adrianoboller, 22,may. 2015 20:46 - No hay respuesta
Miembro registrado
3.661 mensajes
Popularité : +175 (223 votes)
Publicado el 22,mayo 2015 - 20:46
//WX - Impressora Zebra

glocalsDevice is string = "LPT1"

// String to send to printer
sMyString is string

// Port no. returned from fOpen
glocaliPort is int

// Open the file

glocaliPort = fOpen(glocalsDevice, foCreateIfNotExist)

IF ErrorOccurred THEN
Error("Unable to contact the printer! ", ErrorInfo())
ELSE
// Init the label
sMyString = EDT_Reg_imp
fWrite(glocaliPort, sMyString)

// Close the file
fClose(glocaliPort)
END