Something like this is, I think, what you are looking for:
<cfif structKeyExists(url,"print")>
<cfdocument>
</cfif>
<cfform content etc
<cfif structKeyExists(url,"print")>
</cfdocument>
</cfif>
Then have a link
a href="#cgi.script_name#?print=">Print This/a>
Cheers,
Sam F
On 2/15/06, carol Tobey <[EMAIL PROTECTED]> wrote:
> What I need to do is have basically two versions of a .cfm one that has
> <CFDocument> wrapped around the code that I want output as either flashpaper
> of pdf. But I do not want to keep to different .cfm files one with the
> <cdoucment> tag and one without. I want to put the <CFDOCUMENT> tag around my
> code but only want it to execute when they click a button that says printable
> format. Otherwise if I wrap the <cfdocument> around my code all the time my
> form will never be able to accept input. An example would be mapquest they
> have a link that says printer friendly I want to do this on my form and have
> it call it's self so the user can then print out either the flashpaper or
> pdf file. Does that help clarify what I want to do?
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232382
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54