Hello,
I would like to create a cfc using CFFILE that has a CFFILE tag in it.
Some lines of the cfc will always be the same when the file is created.
For example:
<cfargument name="class" type="string" required="yes">
<cfargument name="labelData" type="query" required="yes">
<cfargument name="bpcsData" type="query" required="yes">
<cfargument name="printer" type="string" required="yes">
<cfargument name="lotNumber" type="string" required="yes">
<cfargument name="bestUsedByMonths" type="query" required="yes">
<cfargument name="palletData" type="query" required="yes">
<cfargument name="manufacturingDate" type="string" required="yes">
<cfargument name="numberPerPallet" type="string" required="yes">
<cfargument name="printNumberBy" type="string" required="yes">
Some of the lines will be dynamic based on what the user enters into the text
boxes on the form.
Last in the cfc, I will need to write the following to the file:
<cffile action="write"
file="#cmdFdir#label.txt"
output="%BTW% /AF=#lblFile# /PRN=#Printer# /P /C=#numberToPrint# /R=3
/D=#q#<Trigger File Name>#q# /DD /X#Chr(10)#
%END%#Chr(10)#
#lblData#"
nameconflict="makeunique">
Is there an easier way to do this or am I not using CFFILE correctly to create
the cfc? I can output 1 line just fine, but when I want to output multiple
lines to the cfc and want line breaks, it doesn't work. Do I need to output
each line using append in the CFFILE tag?
Thanks,
Tim
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326118
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4