This content has been marked as final. Show 3 replies
I am not sure about the options that you have given are feasible. I know coldfusion creates word files but not like the way PDF is built. However I do remember searching the old macromedia or allaire site for a custom tag that would build a word document with headers and footers and found one. But I do have an simple option, which you can give it a try.
Create a word document template with what ever header, footer, images etc. and merge it with the data you want to present. It will produce a new word document what you are looking for. It's the Mail Merge (Word.MailMerge) feature of Microsoft word that can be used.
make a mock-up of the file in MS Word. Save it as a Web Page (NOT Web
Page, Filtered, if you a given that option). Open the saved file in an
html editor and check all the (rediculous) code MS Word puts in there.
If you had headers/footers, you will notice they are saved as a separate
.htm file called header.htm in a folder called [your word doc
name]_files. open that one in an html editor, too, and check the code.
you will basically have to output your html formatted like that so that
when you save the file with a .doc extension MS Word will pick us your
content and headers/footers.
Note: when file is opened, MS Word will ask if you want to convert it
from HTML format, even if the file has a .doc extension.
i have never actually tried this with Word, but it works with Excel...