Open window as readonly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gyanchand
    New Member
    • Jul 2007
    • 35

    Open window as readonly

    using a popup i am displaying the contents of a word file. the user must not be able to edit the word file. but in the popup window user is able to edit the file....

    Can we open the popup window as readonly or something
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Originally posted by Gyanchand
    using a popup i am displaying the contents of a word file. the user must not be able to edit the word file. but in the popup window user is able to edit the file....

    Can we open the popup window as readonly or something
    Is this a word file that is already saved, or created dynamically?

    If the former, you should be able to lock it from edits as you save it.

    Jared

    Comment

    • christopherpond
      New Member
      • Jul 2007
      • 26

      #3
      Although they may get the impression they are modifying the original Word file, this is simply a local copy and the server file would not be edited. Not sure if this helps or not?

      Comment

      • Gyanchand
        New Member
        • Jul 2007
        • 35

        #4
        hey Jared, thanks for your reply man...

        yes, the file is being created dynamically.. Even tried setting the file attributes to readonly.. but... when the file is opened in the popup window... it is editable to the user...
        However, while closing the popup window the msg is displayed saying the file is readonly and the user is prompted to save the file to another location...

        neway is there any other way where in the user is not ina position to edit the contents ...

        Comment

        • Gyanchand
          New Member
          • Jul 2007
          • 35

          #5
          yes keping this option as the last resort, but just wanted to know how to lock the contents of the file or make the window readonly .... neway.. thanks man chris

          Comment

          • jhardman
            Recognized Expert Specialist
            • Jan 2007
            • 3405

            #6
            Originally posted by christopherpond
            Although they may get the impression they are modifying the original Word file, this is simply a local copy and the server file would not be edited. Not sure if this helps or not?
            Yeah, Chris is right. the best you can do with word is what you have done. If you don't need it to be a word doc you could look into making a PDF file. I saw a recent tutorial where the user made a PDF form, then used an asp page to collect the data and fill out the form.

            Comment

            Working...