Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOX + Word = ???
Message
De
29/12/1997 08:07:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
29/12/1997 06:44:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00068197
Message ID:
00068205
Vues:
22
>> I do talking to Word through word.basic but haven't tried with Word97 yet. Since you have a wordbasic program why not use it through VFP ? Up till now problem with wordbasic I faced was not knowing the parameter positions (in VFP we need positional arguments for wordbasic calls). Now I got position.hlp including the necessary data. Another approach is to save the wordbasic as a macro in word and call it during fileopen.
>
>1. Simple sample:
> let i have wordbasic programm:
> Sub TypeText(a$)
> Insert a$
> End Sub
> Who i can run it from VFP?
>2.Who it is position.hlp? Send me please archive!
>
>P.S. Thank for a praise my English.
>P.P.S. Your help on COLLATE me has very helped.

Sorry being late, I had a class.
In VFP you would write like this (this is from VFP automation samples - check it in solution.app) :
oWordRef.Insert(aString) && a$ notation is for basic
* oWordRef is a reference to word object, you can get it through addobject, createobject, getobject etc.
* And do something extra with word.basic
oWordRef.editselectall
oWordRef.Font("Arial",18)
oWordRef.Bold
oWordRef.EditGoTo("\EndofDoc")
oWordRef.WordLeft(4)
oWordRef.SelectCurWord
oWordRef.CharColor(2)

Position.hlp is mailed to me by John Muehleisen and I forwarding it to you.
Ç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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform