public virtual void ExportarExcel(Control control, string fileName)
        {
            ExportExcel reporteExcel;

            try
            {
                reporteExcel = new ExportExcel();
                reporteExcel.AddSection(control);
                reporteExcel.SendToBrowser(Context, fileName);
            }
            catch (Exception ex)
            {
                string excepcion = ex.Message;
            }
        }
        public virtual void ExportarExcel(string title, Control control, string fileName)
        {
            ExportExcel reporteExcel;

            try
            {
                reporteExcel =

                    new ExportExcel(title);

                reporteExcel.AddSection(control);

                reporteExcel.SendToBrowser(Context, fileName);
            }
            catch (Exception ex)
            {
                throw new Exception("Ha ocurrido un error al exportar la información a Excel.", ex);
            }
        }