La Web del Programador: Comunidad de Programadores
 
    Pregunta:  47063 - VISUALIZAR ARCHIVO WORD, PPOINT EN PROGRAMA ASP.NET
Autor:  Eulises Ospina Arias
Necesito de su colaboraciĆ³n.......
Es necesario en un programa de asp.net, que yo pueda visualizar el contenido de un archivo almacenado en un servidos... este archivo es un documento de solo lectura o una hoja de calculo o una presentaciĆ³n de power point....

que instrucciones realizar???....

gracias al que me pueda brindar una luz a seguir...

  Respuesta:  Carolina Cadenas
Hola,

Has tratado de usar el tag: <input type="file" id="St_photo" runat="server" />. Te va a brindar la oportunidad de buscar cualquier archivo.

Debes declarar una funcion tal:

Dim savePath As String = Server.MapPath("//webserve/e-com8/carolina/CP fashion/images") 'this is the path where i stored the photos
Dim postedFile = St_photo.PostedFile 'Chosen file name from the form input
Dim filename As String = Path.GetFileName(postedFile.FileName)
Dim TheImage as String = Filename

If Filename is "" Then
msg.text="You must select a photo of the product"
Else
TheImage = Filename
End If

Tambien puedes utilizar el tag:
<asp:HyperLink ID="test" NavigateUrl="basket.aspx" Text="Basket" runat="server"/>

La primera opcion me parece mas logica.

Espero haberte ayudado.