Hi,
I want to
- load a Word Document (built using html) on a browser
- Edit the document in the browser
- Save the changes (on Save I need to run a custom method)
On Page Load, I have the following method which I was hoping would display a word document in the browser (Note:On the aspx I have no controls. Should I be adding any controls???) When the page loads, I get the options Open/Save/Cancel window and when I click Open, nothing happens.
private void Trial1()
{
// Set License Info
// Get HTML using getHTML method
byte[] array = Encoding.ASCII.GetBytes(getHTML());
MemoryStream str = new MemoryStream(array);
LoadOptions r = new LoadOptions();
r.LoadFormat = LoadFormat.Html;
Document wrdDoc = new Document(str, r);
wrdDoc.Save(HttpContext.Current.Response, "out.docx", ContentDisposition.Inline, null);
}
This is what I have for loading and I don’t know how to implement a Custom Save method when the document is saved.
I am fairly new to Aspose so any help would be greatly appreciated.
Thanks!