Free Support Forum - aspose.com

Can I embed a Word document in a Webpage using Aspose.Words?

Hi

I have a scenario where a Word document (present on the server) has to be embedded in a Webpage. It has to work in the following manner:

  1. The user should be able to select a Word document (present on the server)
  2. The selected document should get embedded in a webpage. (The webpage will have 2 sections, Right section where the document gets embedded and the left section which will contain a few controls like textboxes/textarea, listboxes etc.)
  3. The user should be able to select content from the embedded document, copy it & paste it in a textbox/textarea

Can it be done using Aspose.Word?

Thanks in advance

Shantanu

Hi

Thanks for your request. I think, in your case, you can convert your document to SWF format and embed the resulting SWF into your web page. SWF document produced by Aspose.Words includes a document viewer UI. Please try to export some document in demos to SWF to see it:

http://www.aspose.com/demos/.net-components/aspose.words/csharp/general/dinner-invitation.aspx

Hope this helps.

Best regards,