Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Save as a Word 97 document
Message
From
12/04/2000 15:14:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/04/2000 14:11:00
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00358826
Message ID:
00358884
Views:
10
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform