Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protecting Word docs used by an application
Message
From
02/01/2009 10:24:24
Mike Yearwood
Toronto, Ontario, Canada
 
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:
01370651
Views:
20
>The folder apparently has no restrictions. If it did, the user wouldn't be able to use Windows Explorer to delete files. Word has a 'Mark as Final' option that should restrict document access to read-only but that can't be considered a security feature. There are dozens of ways to get around that.

So you mean the files were completely unprotected. Clear.

>
>I realize that Word can't save changes to a read only document but read only can't be considered a security feature. In the case of the 'boilerplate' documents (the ones that were deleted) the user never has interactive access to the document from within the VFP application so editing and saving are not options. But, users can still access the documents outside the application via Word and I'd like to prevent that for all but administrators.

That is not a VFP problem, but a networking one. You could build the template documents into the exe, but then everytime an "administrator" changes them, you'd have to build a new exe. I would just put the templates on a network shared folder with most rights removed.

>
>In the case of the 2 custom documents, users do get interactive access to a copy of the original and may save the copy. I'd like to restrict saving to the user's personal directory but a prior discussion here on UT has indicated that's not possible.

You could copy a template to a user-specific folder and have the app open it for whatever processing it does. Then the user would have to go to more trouble to move that file elsewhere. Most wouldn't be bothered to do that.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform