Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Response.WriteFile(Comunes.AnalisisReporte(Convert.ToInt32(Request["idPersona"]), Convert.ToInt32(Request["idOperador"]), null));
         Response.AddHeader("Content-disposition", "attachment;FileName=\"Analisis.xls\"");
         Response.AddHeader("content-type", "text/html");
         Response.End();
     }
 }