Ejemplo n.º 1
0
        private void btnExport_Click(object sender, EventArgs e)
        {
            DataTable theDT = (DataTable)dgQResult.DataSource;

            if (theDT.Rows.Count > 0)
            {
                IQCareUtils theUtils = new IQCareUtils();
                theUtils.ExportToExcel_Windows(theDT, GblIQCare.GetExcelPath() + "QBReport.xls", GblIQCare.GetExcelPath() + "\\Templates\\BlankReport.xml");
            }
        }