Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: OLE
Divers
Thread ID:
00474367
Message ID:
00474373
Vues:
19
>A colleague has an application that displays Word, thereby enabling users to enter information into a template document. Can anyone advise on how to save the document as a specific filename via OLE after the information has been entered?
>
>Thanks
>
>Michelle

Assuming you have Word instantiated, I use o.Word

The syntax I used for 'saving as' is:

#DEFINE wdFormatDocument 0

oWord = CREATEOBJECT("Word.application")

oWord.ActiveDocument.SaveAs(lcFullWordDocPath,wdFormatDocument,.F.,"",.F.,"",.F.,.F.,.F.,.F.,.F.)

oWord.ActiveDocument.Close
oWord.Application.Quit
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform