Embed editable MS Word document on web page

11,192

Solution 1

What about using Google Docs API? You could use either their word-like doc or a form to get the data you need, and then present that internally.

Not sure if this meets all of your requirements, or is an available option.

For our company, we have a few tools that utilize Google Docs. We upload data dynamically to them for specific needs.

Based on your requirements, maybe it's best to just write your own. I haven't created a Rich Text Editor. But it looks like there are quite a few tutorials online. Here is a basic tutorial for a rich text editor. It's using javascript, HTML, & CSS. If you prefer to not use js, then you may need to look for other tutorials.

This isn't the most glamorous solution, as it looks like the users view would be HTML. I'd think you could have it updating dynamically off to the side with an actual rich text view (similar to how Stack Overflow has theirs below an answer or question being written).

Update Over the weekend I was exploring HTML5's contenteditable attribute, I came across an editor that builds off of that called Aloha Editor. It's a WYSIWYG type editor. But if that's something that you desire for your clients, than this would probably be a pretty simple integration. I have yet to use it, but it seems like it would be a great fit - if you decide to go the route of building your own editor.

Solution 2

You could use the Zoho API or, if you need to keep all data on your own servers and validated clients at all times, you could try the Aspose components.

Solution 3

If you're interested to provide documents in a view-only way then you can try GroupDocs as well: http://groupdocs.com/. They offer viewers for different file types which you can add to your website very easily: http://groupdocs.com/apps/viewer.

Share:
11,192
Danny
Author by

Danny

Updated on June 27, 2022

Comments

  • Danny
    Danny almost 2 years

    I need to present Word and PDF documents in a read-only preview, via an ASPX/HTML page to my internal users. In a related requirement, I need to present editable Word documents, via ab ASPX/HTML page, to parties outside of our network - effectively the public.

    We cannot rely upon Word or Adobe-type PDF plugins being available on the destination PC.

    Can anyone suggest a way to do this?

    Edit - For clarity, the document/data would ideally stay on our own servers.

  • Danny
    Danny about 11 years
    The data does need to stay on our servers. The Aspose option looks as though it only allows the documents to be rendered and not edited...
  • robertc
    robertc about 11 years
    @Danny Yep, you'd have to write your own editing component, or convert to a format which is more easily editable and then convert back afterwards.
  • Danny
    Danny about 11 years
    Hosting data elsewhere, for example with Google Docs, is a none starter unfortunatly. Equally, we need changes made to the document to be reflected back 'locally' to us.
  • EnigmaRM
    EnigmaRM about 11 years
    Oh right. Need the data to reside on your server. How fancy does the doc editor need to be? Can you just do a basic Text field that they put their content in? Or are you wanting them to be able to have formatting abilities?
  • EnigmaRM
    EnigmaRM about 11 years
    I updated my answer with another possible solution. Probably not the most ideal. But would be a fun project & give you the most control over the long run.
  • Danny
    Danny almost 11 years
    The Aloha Editor looks like a very viable option, thanks for following up. Since my OP, there is also the possibility we might get away with the Google Docs API.
  • Danny
    Danny almost 11 years
    This looks a neat solution but unfortunately the PUPM pricing model doesn't work that great for us, nor does the somewhat restricted feature set in terms of document volumes and sizes. It may be a good solution for others though.