Esempio n. 1
0
    protected void btnGenerarExcelTotales_Click(object sender, EventArgs e)
    {
        string datos = Util.RenderNovedadesTotales(novedadesTotales);
        string datosFiltrosDeSeleccion             = String.Empty; // = Util.RenderFiltros(ObtenerFiltrosDeSeleccion());
        ArchivoConFiltrosDeSeleccionDTO archivo    = new ArchivoConFiltrosDeSeleccionDTO(obtenerTituloArchivoConFecha("NovedadesTotales", "xls"), "vnd.ms-excel", "Novedades Totales", datos, datosFiltrosDeSeleccion);
        ExportadorArchivosNovedades     exportador = new ExportadorArchivosNovedades();

        exportador.ExportarExcel(archivo);
    }
Esempio n. 2
0
    protected void btnGenerarExcel_Click(object sender, EventArgs e)
    {
        DataGrid dg = new DataGrid();

        dg.DataSource = lstNovedadesInventario;
        dg.DataBind();
        string datos = Util.RenderControl(dg);
        string datosFiltrosDeSeleccion = Util.RenderFiltros(ObtenerFiltrosDeSeleccion());

        ArchivoConFiltrosDeSeleccionDTO archivo    = new ArchivoConFiltrosDeSeleccionDTO(obtenerTituloArchivoConFecha("NovedadesInventario", "xls"), "vnd.ms-excel", "Novedades Inventario", datos, datosFiltrosDeSeleccion);
        ExportadorArchivosNovedades     exportador = new ExportadorArchivosNovedades();

        exportador.ExportarExcel(archivo);
    }