Saludos, tengo un pdf en mi sitioWeb Dnn, y deseo deplegar la ventana para Abrir o Guardar este Pdf al Cliente. He intentado con este codigo pero no lo desplega. Cual seria el Modo de Hacerlo.. Gracias a la atencion. Este el Codigo el cual no lo lanza..:
String filePath = Server.MapPath("~/DesktopModules/Ciber.Trs/pdf/Extracto.pdf");
FileInfo targetFile = new FileInfo(filePath);
if(targetFile.Exists){
//Lanzar el Pdf al Cliente
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition", "attachment; filename=" + targetFile.Name);
Response.ContentType = "application/pdf";
Response.TransmitFile(Server.MapPath("~/DesktopModules/Ciber.Trs/pdf/Extracto.pdf"));
Response.Flush();
Response.End();
}
Cual seria el Modo de Hacerlo?? Gracias...