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:
00483926
Views:
7
>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,

Thanks a lot for your reply. What is wdFormatHTML? Where did you get include file for Word? I'll try this code at work.

Thanks again.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform