Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving document as HTML
Message
De
10/04/2000 23:12:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Saving document as HTML
Divers
Thread ID:
00357813
Message ID:
00357813
Vues:
66
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...
/< /-/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform