Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editing in word object
Message
From
25/09/2006 13:44:56
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01156616
Message ID:
01157005
Views:
17
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')
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform