Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protecting Word docs used by an application
Message
 
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:
01370423
Message ID:
01370425
Views:
19
>One of my clients just had an employee accidentally delete all of the Word documents that their VFP applications use to merge data for printing their legal notices. I know the users need access to the documents and to the directory where they reside in order for the application to access them, but there must be a way to protect them from modification or deletion. The client tells me that this system has been in use for 15 years and this has never happened before, but I suppose it was just a matter of time.
>
>The Word automation process works like this: the original document is opened in Word, copied and the text pasted into a new blank document. The original is closed and data is merged into the copy. After the copy is printed, it is closed without saving. This process applies to 16 of the 18 documents. The other 2 are 'custom' documents that users may edit after the data has been merged. Users are allowed to save these custom documents but the copies are supposed to go in their personal directories, not the application directory. I suspect what happened today is that the user went looking for her copy and somehow deleted all of the originals, perhaps thinking they were in her directory.

Protect the directory (remove access to it) and use Run As from the application. See wiki topic on this.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform