Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Sep 02, 2019 11:31 am

Hi
I use Spiredoc do create a document on my webserver. What is the best option to view that document?
Thank you

mariolopes
 
Posts: 9
Joined: Thu Oct 19, 2017 11:06 am

Tue Sep 03, 2019 8:57 am

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
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Return to Spire.Doc

cron