Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Save as a Word 97 document
Message
De
12/04/2000 15:14:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
12/04/2000 14:11:00
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00358826
Message ID:
00358884
Vues:
11
>I can use the SaveAs() command to tell Word where and what to save a document as, but I don't know how to tell Word what format to save the document.
>
>Here's what I have...
>
>>oWord.ActiveDocument.SaveAs("54947.doc",0,.T.,"",.T.,"",.F.,.F.,.F.,.F.,.F.)
>
>This was formatted from below which was created in the Word Macro Editor...
>>.ActiveDocument.SaveAs FileName:="54947.doc", format:=wdFormatDocument, _LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False,
>>_SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _False
>
>So how do I tell Word to save my current doc in Word 97 format?
>
>Thanks
>Tom Welch


Tom,
If I don't read you wrong you already say it with second parameter - 0 = wdFormatDocument. If I'm not wrong all following "0" have their default values and optional. So you could shorten it to :

oWord.ActiveDocument.SaveAs("54947.doc",0)

If you mean you absolutely want to save in w97 format (from wd2000 for example) then you would use FileConverters collection. Check for a similar thread yesterday.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform