I do this all the time. It's relatively simple. Create what you want the
document to look like in Word, then save it as an RTF. Open the RTF, figure
out where your dynamic content is, and replace it with the variables you
need.

You do need to learn some very basic RTF syntax, but I've found that I can
usually muck with it to get what I want.

-d

----- Original Message -----
From: "Dwayne Cole" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, October 12, 2003 4:43 AM
Subject: RE: Creating Word Doc

> Thanks for the sugggestions.
>
> I may not need a word document. A RTF document will work fine.  Here's the
use case  scenario:
>
> We have generic consulting agreement and I want to 'fill in the blanks'
with data from the database.
>
> I want the user of the system to be able to modify parts of the agreement
if necessary and save a copy to the local drive.
>
> Currently, I'm generating a HTML version of the consulting agreement.
Occassionally, an extra condition or two may need to be added to or removed
from the agreement and our HTML version is not very freindly to changes.
Likewise with PDF.
>
> If I recall correctly, in Ben's advanced CF5 book, he began with a RTF
file then had ColdFusion scan the file and perform some text replacement
operations.  I tried this approach a little more than a year ago and it
worked OK. Some fields (date fields and fields that appeared more than
once), however, were kinda iffy.  So now I woundering if there are any
smoother aproaches. Or if I should work out the kinks in the scan and
replace approach.
>
> Ultimately I would like to create a component that enables the user to
make their own decision about the agreement format.
>
> The cfcoment solutions seem fine for "creating" the .doc file, but I'm
looking for informaiton that deals with the process of populating the a file
with a mix of static and dynamic content then returning something that the
user can edit.
>
>
>
> Dwayne Cole, MS in MIS, MBA
> Certified Advanced ColdFusion Developer
> 850-591-0212
>
> "It can truly be said that nothing happens until there is vision. But it
is equally true that a vision with no underlying sense of purpose, no
calling, is just a good idea - all "sound and fury, signifying nothing."
The Fifth Discipline - Peter Senge
>
>
>
> ---------- Original Message ----------------------------------
> From: "Sandy Clark" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date:  Sat, 11 Oct 2003 19:04:25 -0400
>
> >Sam Neff gave a presentation on creating Word Documents without COM at
the
> >Maryland CFUG earlier this year. You might want to check for his
> >presentation on their site.
> >
> >
> >
> >  _____
> >
> >From: Dwayne Cole [mailto:[EMAIL PROTECTED]
> >Sent: Saturday, October 11, 2003 3:57 PM
> >To: CF-Talk
> >Subject: Creating Word Doc
> >
> >
> >I'm trying to use the information in the database to generate contracts
in
> >MS word.  Can anyone here refer me to some tutorials or to some custom
tags
> >to help out with this process
> >
> >Dwayne Cole, MS in MIS, MBA
> >Certified Advanced ColdFusion Developer
> >850-591-0212
> >
> >
> >  _____
> >
> >
> >
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to