Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Saving word document
Message
De
16/04/2001 08:07:57
 
 
À
16/04/2001 03:27:40
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00495708
Message ID:
00495727
Vues:
21
>Well I read the article properly and changed the save as line to
>
>loWord=CREATEOBJECT("Word.Application")
>loWord.visible=.t.
>loDocument = loWord.Documents.Add()
>loSelection = loWord.Selection
>loSelection.TypeText("hello")
>&&loDocument.SaveAs("hello")
>loWord.WordBasic.FileSaveAs("hello")
>
>and that works.
>

But there's no reason you should be having to use the WordBasic object. loDocument.SaveAs should work. What happens if you add the .DOC extension or specify a path?

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform