Afsal Mp
Afsal Mp

Reputation: 1

How to open word documents in asp.net application

I am under the development of a job portal application.

For that I need resume upload functionality.

Now problem is how can I view the uploaded resume?

I am using ASP.NET with VB.

Upvotes: 0

Views: 6916

Answers (5)

Raj
Raj

Reputation: 808

You may use:

Dim filePath As String = "C:\Attachments\fileName.xls" -- any file format

System.Diagnostics.Process.Start(filePath)

Upvotes: 0

Mark
Mark

Reputation: 11

You can try a third party library called "Doconut", here is a demo which actually shows a resume DOC opened in an asp.net website, similar to your requirements http://try.doconut.com/Ribbon.aspx This could help anyone else having similar requirements.

Upvotes: 1

Van Dame
Van Dame

Reputation: 159

I am sure you can find much on this topic via Google as this is a consistently recurring topic . Here are a few options:

  1. Opening/Editing of Word Documents via ActiveX Controls - Word/Excel ActiveX Controls in ASP.NET

  2. Via Office Object Model (basically a wrapper around COM Objects) - Automating Applications Using the Office Object Model

  3. Via 3rd Party Libraries e.g. NetOffice (netoffice.codeplex.com)

Upvotes: 0

4b0
4b0

Reputation: 22321

Uploading document must have specific path.So try:

Dim objFile as System.IO.File
Dim sReader as System.IO.StreamReader
sReader = objFile.OpenText(“YourUploadedFilePAth”)

Upvotes: 0

Conrad Lotz
Conrad Lotz

Reputation: 8838

A good example of viewing word documents on a asp.net page can be viewed at http://www.aspsnippets.com/Articles/Display-Word-document-on-web-page-in-ASP.Net.aspx

Upvotes: 1

Related Questions