Click to See Complete Forum and Search --> : Office automation


Sander Bosman
July 4th, 2001, 12:30 PM
Hi, is there any documentation about how too open a file from word (i don't wanna run the application) only open the file and convert it into a html file

greetings
Sander

Bonovox011
July 4th, 2001, 02:30 PM
If you refernece the word library through Project>>References>>then check the Microsoft Word 8.0 Object Library, then you can use the SaveAs method of the Document Object to save it with the Name and Type(and many more options) which you could then change to any format you wish:

ex.
ActiveDocument.SaveAs FileName:="Text.rtf", FileFormat:=wdFormatRTF