Re: making a page use cfdocument or not
Ian keyed in on the solution here. In short - you can't have a condition around just the CFDOCUMENT starting and ending tags; the condition needs to wrap the entire code block. From what I experienced CFdocument seems to always run whether it is wrapped in a condition or not(seems to execute during pre-processing, like evaluate()), then if there is a condition that isn't met it will discard the CFdocument results. Now the end tag doesn't seem to follow these same rules (which you noticed with your error) - it behaves just like any other CF tag. CFdocument in general is a bit flakey, but once you get it working it's an extremely useful and powerful tag. ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275741 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: making a page use cfdocument or not
This was on the Adobe forums just yesterday. The solution is here: ---> #content# #content# ~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275730 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
making a page use cfdocument or not
I would like to make a page that will either be displayed as a PDF using CFDocument or as plan old HTML. I cant seem to do the below I get the error: The end tag encoutered on line 6 at column 11 requires a matching start tag. blah blah blah What is the best way to make the page display in either PDF or HTML? Thanks! ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275727 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4