none
Save office files to web like sharepoint RRS feed

  • Question

  • I need to save office files back to where they are downloaded from like sharepoint.

    The users of my web application (asp.net web api) download files to their local machine, make changes and upload again to the application. So, I'm thinking about doing something like sharepoint that allows the users to work on files on their local machine and saves the changes automatically to the server. Having check-in/check-out option would be an added feature, but not mandatory.

    The files are stored in a windows file system and accessible via UNC path. And the web application runs within the network. It displays the file list reading from a Database table, and returns the file when the users click on the file names.

    Can anyone please let me know if this can be done, or is there another way to allow users saving files back to the file server without having them to upload?

    Thanks.



    Thursday, April 13, 2017 1:53 PM

Answers

  • Here is a complete instruction on how to setup WebDAV: Installing and Configuring WebDAV on IIS 7 and Later

    Then create a virtual directory in WebDAV to the file system. This will allow the clients to browse files like https://webdavserver/filesystem/proejctfiles/test.docx. Here "filesystem" is the virtual directory to a file system that resides in another/local server.

    The above link also explains how to map a network drive to the WebDAV file system.

    The clients should be able to open this file from MS-Word using the file url. And, saving the file at client side will actually send the content to the WebDAV server that will in turn save the file to the file system. The permission to enable saving is described in the link above.

    To enable users to open file from hyperlink on a webpage, you will need to mention the url-protocol for office applications. For word files, the protocol is ms-word, for excel, it is ms-excel. Office url scheme is discussed here: Office URL Scheme

    Wednesday, May 10, 2017 3:32 PM

All replies

  • Hi,

    Here are some threads would help for your reference.

    http://steptodotnet.blogspot.sg/2012/11/how-to-edit-word-document-using-aspnet.html

    https://www.codeproject.com/Questions/385214/opening-and-editing-word-document-from-asp-net-app

    https://forums.asp.net/t/1759894.aspx?open+and+Edit+a+Word+document+Online+

     

    What’s more, as your issue is relative to asp.net web application, I would suggest you post your requirement in asp.net forum so you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge.

    https://forums.asp.net/

     

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Friday, April 14, 2017 2:38 AM
  • Thanks Lee for providing the links.

    Editing on a HTML control has many limitations as it lacks extensive formatting options.

    Then I ended up implementing WebDAV and am still in the process of making some changes in it. This is a great solution to what I am trying to accomplish.

    Thanks again.


    Monday, May 8, 2017 2:26 PM
  • Hi,

    Thanks for your feedback, you could share your solution here after your solution done and mark as answer, so it may help other community members find the helpful information quickly.

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Tuesday, May 9, 2017 1:29 AM
  • Here is a complete instruction on how to setup WebDAV: Installing and Configuring WebDAV on IIS 7 and Later

    Then create a virtual directory in WebDAV to the file system. This will allow the clients to browse files like https://webdavserver/filesystem/proejctfiles/test.docx. Here "filesystem" is the virtual directory to a file system that resides in another/local server.

    The above link also explains how to map a network drive to the WebDAV file system.

    The clients should be able to open this file from MS-Word using the file url. And, saving the file at client side will actually send the content to the WebDAV server that will in turn save the file to the file system. The permission to enable saving is described in the link above.

    To enable users to open file from hyperlink on a webpage, you will need to mention the url-protocol for office applications. For word files, the protocol is ms-word, for excel, it is ms-excel. Office url scheme is discussed here: Office URL Scheme

    Wednesday, May 10, 2017 3:32 PM
  • Hi,

    Thanks for your sharing.

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Thursday, May 11, 2017 1:17 AM