So how did you send the ZPL code from the server to the client? In other
words, the thermal printer is on the client side. So I need a way to execute
cmd.exe on the client computer and then send the correct ZPL code.

Dave Cordes
Senior ColdFusion Developer
636-939-1081 (H)
636-578-4235 (M)

-----Original Message-----
From: Andy Clary [mailto:aclary@;teleplanwireless.com]
Sent: Thursday, October 24, 2002 11:42 AM
To: CF-Talk
Subject: RE: Using CFEXECUTE from a Web Browser???


The app we used was written in FoxPro and was installed on the client
machine.  The ZPL commands can be found in the documentation that comes with
the printer or on zebra's website.  The logic is basically, build up the
required ZPL file and then send the ZPL via a command prompt copy command
(similar to what you did using cfexecute) to lpt1.

I imagine you could do this in any language you wanted, we just used FoxPro
because we had to get to our database anyway.

Andy

-----Original Message-----
From: Dave Cordes [mailto:davecordes@;charter.net]
Sent: Thursday, October 24, 2002 9:28 AM
To: CF-Talk
Subject: RE: Using CFEXECUTE from a Web Browser???


Andy,
Could you give me an example of how you used ZPL to send to a local client
printer?

Dave Cordes
Senior ColdFusion Developer
636-939-1081 (H)
636-578-4235 (M)

-----Original Message-----
From: Andy Clary [mailto:aclary@;teleplanwireless.com]
Sent: Thursday, October 24, 2002 10:26 AM
To: CF-Talk
Subject: RE: Using CFEXECUTE from a Web Browser???


We too, have to print barcodes on zebra printers.

For simple barcodes, we ended up using a barcode font, used CF to display a
dynamic page to the browser and used Meadco's ScriptX object to control
printing functions.  You can find the ScriptX object at
http://www.meadroid.com/scriptx

For one project, we had to print a 2D barcode and we thought using a zpl
file (native language for zebra printers) was the best way.  The developer
who wrote it actually used FoxPro (because that is the database we are
using) to receive some parameters, run a query and then create a zpl file
which could then be sent to the printer.  It actually works well.

Andy

-----Original Message-----
From: Dave Cordes [mailto:davecordes@;charter.net]
Sent: Thursday, October 24, 2002 7:36 AM
To: CF-Talk
Subject: RE: Using CFEXECUTE from a Web Browser???


Dave,
Actually we're trying to use it to print barcodes to a Zebra LP2844 thermal
printer. And we're trying to do it from IE.

If you open a command prompt and type "copy C:\zebra.txt LPT1" and have
valid EPL2 code in that text file it should print a barcode.

That's how we're trying to use it.

Dave Cordes
Senior ColdFusion Developer
636-939-1081 (H)
636-578-4235 (M)

-----Original Message-----
From: Dave Wilson [mailto:dave@;autosdirect2u.com]
Sent: Thursday, October 24, 2002 5:59 AM
To: CF-Talk
Subject: RE: Using CFEXECUTE from a Web Browser???


Couple of points and questions on this.

Firstly, have you tried using CFX_ShellExec tag? I've been using this since
cf4.01 due to various shortcomings of cfexecute's implementation over the
years.

Secondly. Do you need any particular type of printer to support this direct
printing method? I just tried the copy file LPT1 command on a machine here
with a little epson inkjet printer. The printer busy lights begin to flash
but nothing actually gets printed. Do you need a good networkable laser
printer which can support direct file dumps? I want to use this technique in
our systems for invoicing and much more.

Thanks,
Dave

-----Original Message-----
From: Jochem van Dieten [mailto:jochemd@;oli.tudelft.nl]
Sent: 24 October 2002 09:05
To: CF-Talk
Subject: Re: Using CFEXECUTE from a Web Browser???


Dave Cordes wrote:

> I checked and ColdFusion is logged in as the "Local System Account" so
> I don't think it could be a permissions problem.

I'm not so sure about that.

> I found some other posts on the ColdFusion Support Forums that would
> lead me to believe that your second point about timing out is the
> cause. Here is the link that talks about it.

2 issues:

CF MX always waits for the entire period specified in the timeout
instead of the shortest of the timeout and the process finishing (but
you still haven't told us which version/OS/servicepack you use).

Every version of CF will wait forever on your specific code because if
you call cmd.exe you need the /c parameter.


> I read somewhere that Macromedia has no current plans to fix it so
> that's not a good sign.

http://www.macromedia.com/support/email/wishform/?6213=3

Jochem







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to