Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to allow edit of Word automation document
Message
From
27/06/2009 17:49:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01408811
Message ID:
01408815
Views:
91
>I have inquired about his before but, after more than a year of trial and error, I still am not happy with the way this process works--perahps because I haven't explained the objective clearly. I'll try to make this question as straightforward as possible.
>
>I have an automation class that creates Word documents and prints them to PDF or paper. I need to "pause" the automation process to allow the user to edit the document in Microsoft Word. Note that a reference to the Word object exists, the document is open and active--in fact it is the ONLY document.. While editing, the user must not be able to Save, Print or Close the document. Attempts to close Word itself will be interpreted as an indication that editing is complete. At that point, Word should become invisible and control will return to the automation sequence.
>
>What should this "pause for editing" look like in code? I'm specifically interested in how to bind Word events and how to "unbind" them since the automation process requires Word's normal functionality.

Search for your own threads. You have already got the full code to do this at least once.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform