Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automate process of converting Word Files into HTML
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00483840
Message ID:
00483870
Views:
12
In a test the following works for me with Word2000. You could use adir() to get the documents and loop through each:
oWord = newobject('word.application')
lcFile = GetFile("DOC")
oDocument = oWord.Documents.Open(lcFile)
lcPath = justpath(lcFile)
lcNew = juststem(justfname(lcFile))
oDocument.SaveAs(addbs(lcPath) + lcNew + ".htm", wdFormatHTML)
oWord.Quit()
release oWord
return
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform