Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Auto Expertise needed
Message
De
16/04/1999 09:11:57
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00208789
Message ID:
00208941
Vues:
25
>>Ok,
>>
>>Here is what I want to happen
>>
Robert,

Thanks for reply. I would love to take a loog at the code you are talking about. As far as the APPEND GENERAL, did you have your problems even using the LINK clause? My understanding is that this only more or less stores the path to the file along with a bitmap of it.

thanks,
Ken

>OK,
>
>I tried this with Word in a General field with no luck whatsoever - in Access you have an OLE_UPDATED event which returns a code based upon the user's action with the OLE object. Unfortunately, this doesn't exist in VFP (at least in 5.0 - maybe it does in 6: anybody?)
>
>I solved this (following advice here on the UT) by storing the Word file in a Memo Binary field and spawning Word when I needed it, having saved / loaded the file to disc. Once you get used to this approach, it is a lot more flexible than the General field version.
>
>Also, there is a bug in the OLE control used with Word: the page size is reset to Custom (approximately the size of the control on your form, e.g. 4 inches) - again, this may have been fixed in VFP 6: anybody?
>
>If you decide to use the Memo field method, let me know: I have code that handles this for Word 6/95 and 97 (they behave differently from each other and on different speed machines). Cetin Bastoz (forgive me if I've spelled it wrong, Cetin) has also posted code here for Word 97 - do a search for it.
>
>I would also strongly advise encapsulating the calls to Word in a class of your own rather than embedding OLE calls directly into your code: that way you can protect yourself from later changes in the Word OLE Automation model further down the line (q.v. Word Basic in 6.0/95 and VBA in 97), handle mulit-lingual versions and possibly other word-processors, should you need to.
>
>Hope this helps.
Ken B. Matson
GCom2 Solutions
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform