Beispiel #1
0
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //FormTypeTitle ftt = new FormTypeTitle();
            //ftt.Text = "报表名称";
            //ftt.TypeTitle = "报表名称";
            //if (ftt.ShowDialog() == DialogResult.OK)
            //{
            //    //FileClass.ExportToExcelOld(ftt.TypeTitle, "", this.gridControl1);



            //}
            DataTable dt = ConvertXtrTreeListToDataTable(treeList1);

            FileClass.ExportExcel(dt, forecastReport.Title, false, false);
            //FileClass.ExportExcel(dataTable, forecastReport.Title, false, false);
        }
Beispiel #2
0
 private void barButtonItem6_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     FileClass.ExportToExcelOld(this.forecastReport.Title, "", this.gridControl2);
 }