Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Talking with Word
Message
De
30/12/1997 11:52:29
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00068385
Message ID:
00068434
Vues:
26
>PMFJI, but do you know if there is a reference document somewhere that lists the methods available in a Word Basic object along with their syntax?
>
>>Hi Ed,
>>
>>>2. I define in wordbasic object. How i can acess to it from VFP?
>>
>>loWordObject = CREATEOBJECT('word.basic')
>>
>>Now you have a reference to the word object through loWordObject. For e.g. you may try
>>loWordObject.AppMaximize() or loWordObject.FileNew() etc.
>>
>>>3. I need information about RTF(file format, creating file from VFP)
>>Simply add the OLE RTF control on the form. Users can enter data here and then you may replace this information to your memo field. I'd suggest checking the help of RTF control for more details depending on your requirements.
>>
>>Kamal

Wrdbasic.hlp file contains PEM for word.basic It's located in winword directory and syntax is for VBA. It's addopted to VFP easily though. The problem is it gives the parameters as named parameters
ie: FileOpen .Name = text [, .ConfirmConversions = number] [, .ReadOnly = number] [, .AddToMru = number] [, .PasswordDoc = text] [, .PasswordDot = text] [, .Revert = number] [, .WritePasswordDoc = text] [, .WritePasswordDot = text]

To use it in VFP as far as I know we should use positional arguments ie: fileopen("adoc.doc",,1,,"pass") There is a file named position.hlp containing these positions, as far as I could check they are in the same order in wrdbasic.hlp. I will put the position.hlp in files section.
Ç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