C J
C J

Reputation: 417

how to save a docx file in sql server 2005 and display it in aspx pages as docx document

I am using visual studio 2005 and sql server 2005 to make an application.

I want to save user's doc,docx file in a database and show the uploaded user doc ,docx file in an asp page.

How to achieve this ?

Upvotes: 0

Views: 1595

Answers (1)

Geoff Appleford
Geoff Appleford

Reputation: 18832

You cannot easily show Word documents in a web browser.

You should show a link to the file - this will download it to the client machine and open it in Word if they have it installed.

I guess you might also consider converting the file to a format that is slightly easier to display in a browser. eg PDF. You can use Office interop to do this or Aspose.Words to do it without Office.

Upvotes: 1

Related Questions