コード例 #1
0
        protected void btnExcel_Click(object sender, EventArgs e)
        {
            try
            {
                CRB.BOSS.Funcoes.Excel.Excel excel = new CRB.BOSS.Funcoes.Excel.Excel();
                CRB.BOSS.Funcoes.Excel.Cabecalho cabecalho = new CRB.BOSS.Funcoes.Excel.Cabecalho();
                cabecalho.Tema = Tema;
                cabecalho.Titulo = "Lista de CGMP";
                string[] listaFiltros = ExtrairCabecalhoFiltrosCGMP().Split(';');

                excel.GerarExcel(listaFiltros, cabecalho, ListaCGMP(), null);
            }
            catch (Exception ex)
            {
                CRB.BOSS.UI.Controle.Popup.Mensagem.Formulario(ex);
            }
        }
コード例 #2
0
        protected void GerarExcel(object sender, EventArgs e)
        {
            try
            {
                CRB.BOSS.Funcoes.Excel.Excel excel = new CRB.BOSS.Funcoes.Excel.Excel();
                CRB.BOSS.Funcoes.Excel.Cabecalho cabecalho = new CRB.BOSS.Funcoes.Excel.Cabecalho();
                cabecalho.Tema = Tema;
                cabecalho.Titulo = "Lista de Repasse";

                string[] listaFiltros = ExtrairCabecalhoFiltros().Split(';');

                excel.GerarExcel(listaFiltros, cabecalho, null, RecuperarRepasseConcessionaria());
            }
            catch (Exception ex)
            {
                CRB.BOSS.UI.Controle.Popup.Mensagem.Formulario(ex);
            }
        }