Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/03/2009, 14:11
lreyesg007
 
Fecha de Ingreso: marzo-2005
Mensajes: 123
Antigüedad: 19 años, 2 meses
Puntos: 1
Abrir un documento desde un calendar

Hola trabajo con visual studio 2003 y tengo un calendar que al dar click me debe abrir en una ventana nueva un archivo pdf. Pero esto me lo abre en la misma ventana... como lo hago para que sea en una nueva...

de antemano muchas gracias

este es mi codigo

Private Sub CalOrdEsc_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalOrdEsc.SelectionChanged

Dim cDocOrdEsc As String
Dim cPath As String

cPath = "D:\inetpub\wwwroot\pruebas\"
cDocOrdEsc = Year(CalOrdEsc.SelectedDate) & Right("00" & Month(CalOrdEsc.SelectedDate), 2) & Right("00" & Day(CalOrdEsc.SelectedDate), 2) & ".pdf"

If System.IO.File.Exists(cPath & cDocOrdEsc) Then
Response.ContentType = "application/pdf"
Response.Redirect(Server.MapPath("/pruebas/" & cDocOrdEsc)))

End If

'End If

End Sub