Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editing in word object
Message
 
To
25/09/2006 13:44:56
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01156616
Message ID:
01157062
Views:
16
OK, I made some tests with a browser object (suggested by Cetin) It work fine for me. So, I simply "browse" my document, the user can edit what he want, I made some research to be able to programmaticaly control Word's CommandBars and Menus.


>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
Reply
Map
View

Click here to load this message in the networking platform