I have had a .doc generator running under CF5.0 & Word 2000 for more than
1.5 years without a crash. Before settling on a server-side solution, I
messed with .dot files on the client side but the potential mess was
frightening (getting users to load and manage macros, etc.)
The volume has been very low -- 2 or 3 15-page proposals per day & the
processing time takes about a minute (w/ nearly 100% cpu utilization). But
nonetheless, we successfully pulled this off. I will add that it did take
me weeks to get it right -- primarily due to the some pretty tight
formatting requirements, self-doubt, etc.
It's true that if your script bombs you will end up with multiple copies
of winword.exe active. If I recall correctly, you may need to stop the
Cold Fusion Application service to release some kind of lock & then kill
the multiple instances of winword.
I relied heavily on http://www.cfcomet.com (gratefully, they are back
online thanks to Mike Dinowitz). Contact me directly and I can provide
some samples if you decide to build .doc files on the server from scratch.
Best of luck,
Mike
Shawn Grover <[EMAIL PROTECTED]>
01/09/2004 01:06 PM
Please respond to cf-talk
To: CF-Talk <[EMAIL PROTECTED]>
cc:
Subject: Need help with MS Word Automation
I am having problems finding information on using Word Automation. What I
am trying to do is use CFMX (6.0) to open a MS Word template (.dot file),
find the bookmarks in the file, insert data from our database at the
bookmark locations, and then save the document as a new file on the
server.
Once the file has been saved, I need to push it to the client browser (via
a
UNC path).
I think I have the information I need to work with the bookmarks, and know
how to push the resulting file to the client. But I'm having problems
reliably opening the word.application object.
I'm sure this has been done before but am finding very little references i
how to do it. Am I just misreading what I have found? Is there some
trick
that I don't know about?
Thanks for any tips.
Shawn
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

