Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about _hyperlink

Status
Not open for further replies.

youwannawhat

Programmer
Oct 3, 2001
43
US
I had a request to provide a button on several pages of an application linked to a specific word document outlining the SOP's for entering data into that page. I dropped an _hyperlink button on the page and set its cTarget to the path of the Word doc containing the SOP. Everything seems to work fine, but now my customer is concerned that the users may have editable access to the procedure documents. As I was trying to password protect the folder, I did some testing, and even though I'm able to edit the document in the browser, when I go back to the original document it remains unchanged.

My question: Are documents pulled in through the browser by _hyperlink inherently 'read-only'?
 
I'd certainly hope so. Provided, that is that, as you indicate the document is brought up in the browser as opposed to a copy of Word itself. I have a web site I'm working on which allows links to documents and it pulls up Word itself if you're pulling up a '.doc' document. In that case you can change the document and it will be permanent. OTOH if you change the .doc as an .htm doc, then it just appears in your brower and can't be changed. But how it works in VFP I'd have have to test. Dave Dardinger
 
In other words, if the document is a .DOC file and the hyperlink to it is using File-Access (as opposed to being served by an HTTP web server), AND the user has Read/Write priveledges on the drive the file is accessed from, it CAN be edited and the edits CAN be saved permanently.

The browser Embeds an instance of MS Word inside it, so when the user views it, they really are using Word itself to view/edit it.

Convert the document to be .HTML, or put it on an internal Web server and make the hypertext link start with " instead of "X:\path\file.doc", or make the drive the files are browsed-to a read-only share, or mark the files read-only... Any of these will keep the users from changing the original.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top