Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving document as HTML
Message
From
10/04/2000 23:12:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Saving document as HTML
Miscellaneous
Thread ID:
00357813
Message ID:
00357813
Views:
60
I have a VFP app that uses OLE automation to load RTF documents into Word and save them as HTML. This occurs many times a day. The code I use is:

wd=createobject('word.application')
wd.documents.open(m.infile)
wd.ActiveDocument.SaveAs(m.tname,106)
wd.quit
release wd

The problem is that the number (106) used in the SaveAs() method varies from machine to machine. On one machine, it's 106. On another, it's 102. On still another, I believe it is 111. (I used the macro recorder to determine the numbers.)

Even more confusing is that with Word 2K, it uses a variable reference which I haven't any clue how to resolve.

Is there any way to set this up where I can run this from any machine and not just the "matching" computer?

I thought about using IE, but I'm having the same problem determining all of the WBExec() parameters to use to Save As HTML.

Any help will be greatly appreciated!
Later...
/< /-/
Next
Reply
Map
View

Click here to load this message in the networking platform