PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → WX - Impressora Zebra
WX - Impressora Zebra
Iniciado por Boller, mai., 22 2015 8:46 PM - Sem resposta
Membro registado
4.520 mensagems
Publicado em maio, 22 2015 - 8:46 PM
//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