I've never used CFX_PRint, but if the receipt were text, or pcl/postscript
with the right wrapping around it (PJL) then you could just write the
receipt
to a hard coded file name, and use CF_EXECUTE to run a batch file that
does "COPY filename.prn LPT1:"
Talk about a hack! CF is not good for this kind of thing. But what the
hell. If the printer is hooked up to the parallel port of your "Server"
then this will work if you can't get CFX_Print to work.
-Erik
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 12:02 PM
To: Fusebox
Subject: OT: CFX_PRINT
I have tried to get some help on this through the Allaire forums but no one
has ny ideas.
I am trying to use the CFX_PRINT tag to print out receipts behind the scenes
for a cash register system (fuseboxed, of course).
The receipt file is created just fine, the receipt deletes just fine but
CFX_Print doesn't seem to respond at all. I don't get any error messages and
the spooler never gets a print request.
If I leave out one of the mandatory variables for CFX_Print I get an
appropriate error but when everything is correct I get nothing, not even the
return code for the tag. Any thoughts?
I have tried this with both local and network printers and I have outputted
the contents after the CFFILE read to make sure that I am getting data. I
have also removed the delete action to see if that would change things.
Ian
Webmaster
CatholicStore.com
CatholicLiturgy.com
<CFFILE ACTION="Read"
FILE="c:\cstorenewstore\temp\#Attributes.OrderNumber#.htm"
VARIABLE="Variables.Receipt">
<CFX_PRINT
DOCNAME="test"
� TEXT="#Variables.Receipt#"
� PRINTER="test"
� NAME="Receipt">
<CFFILE ACTION="Delete"
FILE="c:\cstorenewstore\temp\#Attributes.OrderNumber#.htm">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists