Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Application open in user's PC, how to...
Message
From
13/09/2006 15:20:55
 
 
To
13/09/2006 14:38:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01152901
Message ID:
01153501
Views:
19
>>>I've had that with both Word and Excel - if user launches either while VFP has one instance created, it doesn't launch as a new instance, but rather as just another window of VFP's instance. Then when VFP kills it in the end, user's instance also vanishes.
>>>
>>>You may try RTF box instead, and use that to convert your texts to RTF files. That'd be more lightweight and easier on the system, and wouldn't clash with anything user may open while it works.
>>
>>Thanks for your suggestion, how may I find more information on RTF box? The documents need to be password-protected. I didn't add in the code sample that it'd be individually password-protected.
>
>RTF Box (aka RichText control) can't do password-protected, because .rtf format is just a markup language, pretty much like html - so it's actually just plain text that anyone can open.
>
>Maybe you do have an option - keep only one instance of Word throughout the process, and close each document you created. Then in the end if the oWord.Documents.count (or something to that effect) is not zero, this means the user has Word open. Issue a warning that Word may be closed on them when they click OK, and let them save their work first. Release oWord when they exit this dialog.

Thanks, I already moved the CreateObject to the beginning of the program.
Thanks!
~d
J
Previous
Reply
Map
View

Click here to load this message in the networking platform