Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local printer barcode on terminal client
Message
From
27/06/2008 03:22:56
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Local printer barcode on terminal client
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01327167
Message ID:
01327167
Views:
69
Hi
I need help with printing to local barcode printer (I use bar tender) while I use with terminal service.

This include: printing and option to enter data on local computer.
Here is code (work excelent) if I print from the local:
	cnl='123456-789'
	ns='CTRL25789'
	#define btdonotsavechanges         1
	#define btcloseoutfirstformat     1
	#define btdefaultdatabasename      'GNDATA'
	#define btshowstatuswindow         1
	#define btdonotshowprintdialog     0
	if used ('TABLE1')
		use in table1
	endif
	set safety off
	use c:\genln\data\databr\table1 exclusive
	zap in table1
	set safety on
	select table1
	insert into c:\genln\data\databr\table1 (labid,dtl) values (cnl,ns)
	use in table1
	obartender = createobject("BarTender.Application")
	olabel = obartender.formats.open("C:\genln\labels\GNLABID.btw",btcloseoutfirstformat,"ZEB")
	olabel.databases(btdefaultdatabasename).textfile.filename = "C:\AsciiRecords.txt"
	olabel.printout(btshowstatuswindow,btdonotshowprintdialog)
	obartender.quit(btdonotsavechanges)
	obartender = null
	olabel     = null
So, I want to send two parameters (cnl&ns) from the server to be printed in the local barcode printer.
Thank you
Chaim
Reply
Map
View

Click here to load this message in the networking platform