Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Editing in word object
Message
De
25/09/2006 13:44:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01156616
Message ID:
01157005
Vues:
18
Well, then I suggest that you create a "thumbnail" of the word document, and save that in another binary memo field. If you insist on using a general field, at least I have warned you of the problems. When general fields were introduced, they looked very attractive, but experience has shown that they are a real PITA. And because they known to cause memo bloat, you may actually end up losing your data!

Some person asked earlier what a general field was, and the answer he got, was "trouble".

>I know I can do that, but using CREATEOBJECT("word.application") I can not have a "preview" of the document in my form.
>I used OleBoundControl just because it was an object I can put in my form to have a "preview" of the document while I navigate in my Grid.
>
>>You must go back to the drawingboard, and completely forget the "old" way. In stead you use automation, something like
>>strtofile('yourmemofield','c:\temp\yourtempfile.doc')
>>ox=createobject('word.application')
>>ox.Documents.Open('c:\temp\yourtempfile.doc')
>>ox.Visible= .T.
>>ox.activate()
>>*** Now word is open, and the user can edit and save the document
>>ox.quit()
>>replace yourmemofield with filetostr('c:\temp\yourtempfile.doc')
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform