Yes there is a thread local scope and one can use the 'Var' keyword, but
apparently it is somewhat unnecessary.
So this just leaves me trying to control the memory used by the
<cfreport...> tag. Instead of writing directly to a file I am putting
the <cfreport... output into a variable and then attempting to write
that file out. This seems to be working for the memory now, the memory
is released and cleaned up between each batch during the sleep period to
the throttle the report generation.
But the files are not actually being written! Should this work?
BUILD REPORT --->
<cfreport template="ren.cfr" format="pdf" overwrite="yes"
name="vReportLetter">
<cfreportparam name="pFirmNo"
value=#ResultFirms["firmno"][threadIndex]#>
<cfreportparam name="pIssueDate" value=#DateFormat(pIssueDate,
'mm/dd/yy')#>
<cfreportparam name="pRenewalId" value=#vRenewalSeq#>
</cfreport>
<cfset arrayAppend(variables.pdfFiles,vOutputFilePath)>
<cfpdf action="write" source="#vReportLetter#"
destination="#vOutputFilePath#" overwrite="yes">
Or do I just use a <cffile action="write"...> tag. Isn't that just for
text files or can I write out binary output like a PDF file?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307668
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4