Copy link to clipboard
Copied
Hello,
What's the easiest way to create a simple Microsoft Word document on the fly from Coldfusion?
Also, I need to be able to insert page breaks into the document.
Many thanks in advance for your assistance.
Simon
Copy link to clipboard
Copied
I've figured it out...
<cfheader name="Content-Disposition" value="inline; filename=test.doc">
<cfcontent type="application/msword">
<cfoutput>#Now()#</cfoutput>
Does anyone know how to force a page break?
Copy link to clipboard
Copied
Take a look at www.bennadel.com. Using the poi will give you more functionality than cfcontent.
Copy link to clipboard
Copied
Hi Dan,
It looks like Ben's POI Utility to meant to be used with Microsoft Excel rather than Microsoft Word. Is that correct?
http://www.bennadel.com/projects/poi-utility.htm
Many thanks,
Simon
Copy link to clipboard
Copied
There is also one for word and one for powerpoint.
Copy link to clipboard
Copied
I've just found a blog post that will do exactly what I need...
http://www.jensbits.com/2009/06/21/using-coldfusion-to-generate-a-word-document/comment-page-1/#comment-286