protected override void Print() { try { DeviceHelper.ExportToExcelOld(curDevice.gridControl1, "", ""); } catch { } }
private void barButtonItemOut_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { DeviceHelper.ExportToExcelOld(curDevice.gridControl1, "", ""); } catch { } }
private void barButtonItemOut_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (curDevice.GetType() == "20" || curDevice.GetType() == "30") { DeviceHelper.ExportToExcelandchildren(curDevice.gridControl1, "", ""); } else { DeviceHelper.ExportToExcelOld(curDevice.gridControl1, "", ""); } } catch { } }