Tech Off Thread

2 posts

Opening word document

Back to Forum: Tech Off
  • User profile image
    venkatzeus

    Hi,

     

    I have a asp page, which is used to send e-mail. In the mail, I have a link to open a document, which is in a webpage.

    The user gets the email in mail box(outlook 2007/webmail) . When the user clicks on the link in the mail, i want to fetch the username and password of the user and then send it to web application by which the user can be logged in and display(open) the document.

     

    How to achieve this?

     

    Thank you.

  • User profile image
    itsnotabug

    Assuming you have programmatic control over the Word doc on the server, you can set permissions and/or password at the time of its creation. The link in the email will point to that doc and the user will be promted to authenticate when they try to open it.

     

    I wouldn't recommend sending credentials through query strings unless you can come up with a clever way of doing it like a persisted unique hash. I would opt for the user downloading the doc and letting the doc handle authentication through a prompt or windows integrated if you know they always be on your domain controller. 

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.