Click to See Complete Forum and Search --> : Opening Word Doc Read Only


Rob@SYPTE
December 22nd, 2000, 07:45 AM
I am looking for a way to open a Word doc in read only mode in an asp page.
I have got the hyperlink opening the doc in the brovser but this is letting the user edit the document. I tried setting the read-only property of the doc but IE asked if you want to save changes, which I do not want to show. Is there another way of doing this?

Cheers

Rob

Akuta
December 9th, 2005, 02:16 PM
Your best bet is to use a filestream and read the data from the Word Doc into a string or array of chars and write that to the page in a formatted fashion. If you display a link to the file, it just opens up in whatever they have set as the default for that file extension, which is going to be Word or Wordpad... which will allow them to save a copy of their own somewhere else (you have set it to be readonly, which means that it cannot be overwritten) on their own harddrive or in another directory if the original is local.