Exemple #1
0
    protected void btnGenerarReporte_Click(object sender, EventArgs e)
    {
        DataTable dsReporte = Reporte.GenerarCruceFacturacionLiberty(Utils.ObtenerIdsSeleccionados(lbxCompania), Utils.ObtenerIdsSeleccionados(lbxProducto),
                                                                     Utils.ObtenerIdsSeleccionados(lbxEstadoNegocio));

        Utils.DeshabilitarFormatoExportacion(rvReporte, new string[] { "PDF", "WORD", "WORDOPENXML" });

        rvReporte.ProcessingMode         = ProcessingMode.Local;
        rvReporte.LocalReport.ReportPath = Server.MapPath("~/App_Code/Reportes/CruceFacturacionLiberty.rdlc");

        ReportDataSource datasourceResultado1 = new ReportDataSource("dsReporte", dsReporte);

        rvReporte.LocalReport.DataSources.Clear();
        rvReporte.LocalReport.DataSources.Add(datasourceResultado1);
    }