RE: html to word doc.

2004-02-26 Thread C. Hatton Humphrey
 hi all,
 I have to convert some dynamic html generated reports to word 
 document dynamically in the background and save it. How can I 
 do that using Coldfusion. Any help is appreciated.

Are you wanting the files to be directly opened by the visitor or simply
created and saved on the server for later consumption?

If they just need to be opened directly in the browser, you can use
CFContent to generate the file.If you're needing them to be saved for
later consumption my experience is that you need to connect to a COM object.
For help with the later check out http://www.cfcomet.com/word/ for
information.

Hatton 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.572 / Virus Database: 362 - Release Date: 1/27/2004
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




html to word doc.

2004-02-26 Thread Ketan Patel
hi all,
I have to convert some dynamic html generated reports to word document
dynamically in the background and save it. How can I do that using
Coldfusion. Any help is appreciated.

Ketan Patel
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: html to word doc.

2004-02-26 Thread Steve Nelson
1) Open Word
2) Create a file in Word with whatever formatting you want
3) Click file-Save as HTML
4) Open that html file in homesite/studio
5) In Homesite/Studio, locate the data you manually added to the
spreadsheet
6) Insert a CFML in place of the manually added data. Maybe use a
cfquery/cfoutput
7) On the first line add cfcontent type=application/msword
8) Save the file again, this time with a .cfm extension instead of .doc
9) Run the .cfm file in your browser
10) If you did all of those steps it'll open up in word with the
formatting you provided from cfml

You can do this exact same thing with Excel too.

Steve Nelson

Ketan Patel wrote:

 hi all,
 I have to convert some dynamic html generated reports to word document

 dynamically in the background and save it. How can I do that using
 Coldfusion. Any help is appreciated.

 Ketan Patel

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]