Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word 97 Problem in VFP 5
Message
From
22/08/1998 09:40:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
20/08/1998 22:18:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00123352
Message ID:
00129032
Views:
33
>FileSaveAs works with Word 97 if you use the numerical equivalent of the items in the Word save-as combo box as the format for the save. I think the first is *.doc-it would be 0, and then next is *.dot which is 1, *.txt is 2, and so on. The syntax is as follows:
>
>.FileSaveAs(myfile, 2)
>
>to save as text for example. All of this is assumed that you have previously created a Word.Application or Word.Basic object. Hope this helps someone, I know you have all been a great help to me!

Not quite sure the numbers must follow the order in this list, because the contents of this list depend on installed export filters. For *.doc and *.dot we may be pretty sure, but why would the numbers be different for a #9 type, if, for example, #8 is export to WP, which may be installed on some machines, and not on others. There must be some full list of possible formats, both mandatory and optional - and there is:

Here's what I have managed to find in VBA editor, is something like this
Const wdFormatUnicodeText = 7 Member of Word.WdSaveFormat

All the other constants can be found in object browser, search in Word class for WdSaveFormat.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform