Assuming you are CF8 or better...

You wrap your processing code in the cfthread tag and then you have to pass
in whatever variables the code inside the cfthread uses. It's kind of like
how you use cfinvoke in a sense.

I generally stick all vars and content into a structure (here I've called it
"pdfStruct") then just pass in the struct as a variable that can be any name
you want.

<cfthread action="run" name="uniqueNameHere" pdfStruct="#pdfStruct#">

<!--- all processing code here. --->

</cfthread>

Here's the livedocs:

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_t_04.html

And here's some help from good ole' Ben. (the one with the pipes, not the
one with the beard.)

http://www.bennadel.com/blog/743-Learning-ColdFusion-8-CFThread-Part-I-Data-Exchange.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343052
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to