Programmers API for document conversion

S

Somya

Hi there,

I am wondering if there is a programmers API to convert
between the various MS Office File formats. For example.
In MSWord you can open up a RTF file and then save it as a
Word Document (.doc).

I am wondering if there is a way to do this
programatticaly.

From what I can tell so far. it is possible to the
following programatticaly

* open up a document of any type including RTF.
* save it as any type. i.e. *.doc

However, this starts up word as well, whereas all I want
is to able to convert the file as quickly as possible.

Any help would deeply appreciated.

Kind Regards

Somya
 
M

martinique

If the document is capable of being opened in Word (or Excel or whatever),
you can open it in any available format and save it in any. Using Word, for
example, you can open an RTF then save as HTML. You don't have to save as
DOC first.

You can do this programatically -- no API calls involved. The file format is
an argument to the Open and SaveAs arguments.
 
V

Vik Holmberg

You might try this snippit. It will work from VB6 or from VBA with the
proper programmatic implementation. The first line opens a file with the
rtf extension and the second line saves the same file with a doc extension
and as a Word formated document. Hope this helps, Vik.

Documents.Open FileName:="History.rtf"

ActiveDocument.SaveAs FileName:="History.doc", FileFormat:= wdFormatDocument
 
C

Chad Knudson

You can always write code that invokes the converters DLLs directly. I
doubt this is officially supported but it can be done.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top