Cool, thanks a lot Elliot... and everyone else who has responded.
Gav
On Tue, 28 Sep 2004 14:38:36 +1000, Elliot Russo
<[EMAIL PROTECTED]> wrote:
> Here is the basics in word 2000 - you would need to find the appropriate
> method (or parameters) to save as XML, this code just resaves it as a new
> file. obviously word must be installed, this method limits the number of
> word instances that will open (hopefully to 1) - think about concurrent
> users and filenames etc.
>
> <cftry>
>
> <cfoutput><p>Connecting...</p></cfoutput>
> <cfobject type="COM" name="MSWord" class="Word.Application"
> action="CONNECT">
>
> <cfcatch>
> <cfoutput><p>Creating...</p></cfoutput>
> <cfobject type="COM" name="MSWord" class="Word.Application"
> action="CREATE">
> </cfcatch>
>
> </cftry>
>
> <cfset MSWord.Documents.Open("C:\Documents and
> Settings\Elliot\Desktop\test.doc")>
>
> <cfoutput><p>saving...</p></cfoutput>
> <cfset MSWord.Documents.item("C:\Documents and
> Settings\Elliot\Desktop\test.doc").SaveAs("C:\Documents and
> Settings\Elliot\Desktop\test4.doc")>
>
> <cfoutput><p>closing...</p></cfoutput>
> <cfset MSWord.Documents.item("C:\Documents and
> Settings\Elliot\Desktop\test4.doc").Close(-1)>
>
> <cfoutput><p>releasing...</p></cfoutput>
> <!--- <cfset MSWord.quit()> --->
> <cfset ReleaseComObject(MSWord)>
>
> "Gavin Cooney" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > Hi all,
> >
> > I believe it is possible to create XML from a word document using a
> > server-side script.
> >
> > Has anyone done this using ColdFusion?
> >
> > Regards
> >
> > Gavin
> >
> >
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
>
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/