CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2000
    Location
    Sheffield, UK
    Posts
    52

    Opening Word Doc Read Only

    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


  2. #2
    Join Date
    Dec 2005
    Posts
    1

    Smile Re: Opening Word Doc Read Only

    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.

  3. #3
    Join Date
    Aug 2015
    Posts
    3

    Re: Opening Word Doc Read Only

    Hi, you can use aceoffix as a plugin to control your Word doc online. It supports many modes, like read-only mode, editable reagion control mode, online editing mode etc..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured