PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 25 → WX - Impressora Zebra
WX - Impressora Zebra
Débuté par adrianoboller, 22 mai 2015 20:46 - Aucune réponse
Membre enregistré
3 655 messages
Popularité : +175 (223 votes)
Posté le 22 mai 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