Hi,
Thanks for your inquiry.
Kindly note Spire.Doc supports editing Word file programmatically, not viewing file.
At present, you could save the Word file to PDF via Spire.Doc, then you could view the result PDF on browser. Below is the code for your reference.
- Code: Select all
doc.SaveToFile(Server.MapPath("~/result1.pdf"), FileFormat.PDF, Response, HttpContentType.Attachment);
Besides, we are developing a new product which supports to browse Word document online on browser. If there is any good news in the future, we will inform you.
Best wishes,
Amber
E-iceblue support team