Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Zebra printers
Message
De
24/04/2015 10:24:12
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
 
À
24/04/2015 09:08:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01618976
Message ID:
01619088
Vues:
51
>Thanks Metin
>
>I recognise that as ZPL programing language. How do I write code to send that to the Zebra printer
>
>Regards.
>
>Des.

Oh, sorry. I use Ed Rauh's DIRPRTCLASS.PRG for direct printing to a windows printer. Like this:
Set Proc To DIRPRTCLASS.PRG Additive
oDirPrt = Createobj('DirectPrintOutput')
With oDirPrt
	.PrinterOpen("My Windows Printer's name") && Arg can be a Win Printer name, port, or a print queue - works with both MSNetwork
	If .PrinterIsOpen()
		.DocOpen('MySpoolName')
		.DocWrite(m.myPrintString)
		.SpoolFile('MySpoolFile.TMP', .T.) && Spool file and delete after printed
		.DocClose()
		.PrinterClose()  && close both current job and the printer
If you direct print to a com or lpt use this:
		Declare Integer CopyFile In kernel32;
			STRING lpSrcFile, String lpDstFile, Integer bFail
		CopyFile(m.myFileName,"lpt1", 0)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform