How to export coldfusion site to word with button event

Started by
-1 comments, last by Brainx7 9 years, 6 months ago

so I know by using these headers at the top



<cfcontent type="application/msword; cht=utf-8">
<cfheader name="Content-Type" value="application/msword">
<cfheader name="Content-Disposition" value="attachment;
filename=Staff-List.doc">

the site opens in a word document, but I want to have the site open normally and then if I click a button, for example "donwload as word" then it downloads, but I can't find anywhere the syntax to do even something similar, how could I do it?

This topic is closed to new replies.

Advertisement