Client Login
Email:
Password:

CF9 Wishlist Addition: CFDocument type="WordDoc|RTF"

Dear Adobe ColdFusion Development Team,

I have an addition to my "CF9 Wishlist"...

Like most of us, I have to update my resume now and then. Being a coder by nature, I prefer building it in HTML. However, those pesky IT Recruiters always "need" to have it in "Word format". Despite my sending over an .html file and telling the folks "this will open just fine in Word, just click the File menu and press Open, trust me", I still get a fair amount of folks writing back, asking for a .DOC file. So I'm forced to either a) maintain 2 separate versions of my resume (.html and .doc) or b) do the "save as .DOC" conversion myself, then deal with all the margins and other auto-magic that MS Office screws up when doing said conversion (note: now that I'm on OpenOffice, it's not quite as crazy, but still more re-work than I really care to deal with).

So how about we add a 'format="WordDoc"' to the cfdocument tag?

I can already auto-generate .pdf and FlashPaper, which is great. And PDFs are good enough for SOME of those IT Recruiter folks, but it would really save us a lot of re-work if we could auto-genereate a Word file as well.

Or maybe (for the sake of slightly more cross-platform use) do a "format='RichTextFormat'"? I'll take either .DOC or .RTF files, which ever you guys can code up first. :)

Thanks, Nolan

Comments
Ben Davies's Gravatar I definitely agree, as it is one of the common requests that comes up again and again. Personally I'm a bit weary of coding it, but I guess I always have the choice of writing a custom tag. Maybe Adobe will do something about it (with the proliferation of XML based markups (eg docx) this should be easier.

<CFDOCUMENT> is one of those tags that didn't get a great deal of love in the CF8 release. I hope they come back to it. Under the covers they could (I imagine) create a range of text-based transforms using XSLT. So <CFDOCUMENT format="xslx"> really does an XSLT transformation of the generated output of the tag. Even better, we could then write

<CFDOCUMENT format="xslttext" scriptsrc="HTMLtoMyObscureMarkup.xslt" />

Out of the box, Adobe could then supply, say 5-8 xslts for word, excel, open office writer, etc.

Capturing the mechanics of the transformation in an XSLT template would ideally allow the community to their own transforms, and allow Adobe to contribute more between releases.

Of course XSL forms really didn't take off, despite the fact they did offer quite a bit of power and flexibility. And it is a bit of a risk relying on the CF community to do anything (although I think we are getting better).

Cheers
# Posted By Ben Davies | 5/26/08 2:24 AM
Phil Duba's Gravatar This is a feature that I have wished to be in CFDocument and CFReport (the report builder version) since it came out. We have a bunch of logic here porting stuff to RTF for output, but it would be much simpler to just use CFDocument and the normal HTML/CF combinations we are all used to.
# Posted By Phil Duba | 5/27/08 7:29 AM
TJ Downes's Gravatar Hey Nolan, you should check out Microsoft's XML formats for Word docs. We use their SpreadsheetML for generating Excel files and it works awesomely.
# Posted By TJ Downes | 6/19/08 4:46 PM
 
BlogCFC was created by Raymond Camden. This blog is running version 5.9.002. Contact Blog Owner