Since this article has been published Microsoft has published
that they no longer support using MS office for COM automation
through server applications. This was published in the release
notes for MSOffice 2003 sp2 and other places. They also refer you
to the following technote:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;257757.
Your issue is that msoffice seems to require you run it as a
user on the box. You can run this code, but you must either start
coldfusion using commandline - cfusionmx\bin\cfstart. Alternatively
set the service to run as a user instead of as localsystem in the
services manager. See
http://www.adobe.com/go/tn_17279.
The best solution will be to create a new method for this
under java. Apache Jakarta POI is a project that duplicates office
COM automation using java classes. A POI jar file is included in
CFMX7. You will need to download it for cfmx6.x and include it in
your class path. You may be able to use nearly identical code using
cfobject/java against POI classes.