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 </cfdocument> encoutered on line 6 at column 11 requires a matching 
start tag.

<cfif URL.Format EQ "PDF">
        <cfdocument format="pdf">
</cfif>

blah blah blah

<cfif URL.Format EQ "PDF">
        </cfdocument>
</cfif>

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

Reply via email to