コード例 #1
0
ファイル: frLinLiaoList.cs プロジェクト: zanderphh/Hownet
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            string filesNmae = dateEdit1.Text + "到" + dateEdit2.Text;

            if (Convert.ToInt32(lookUpEdit1.EditValue) > 0)
            {
                filesNmae += " 部门:" + lookUpEdit1.Text;
            }
            if (Convert.ToInt32(lookUpEdit4.EditValue) > 0)
            {
                filesNmae += " 款号:" + lookUpEdit4.Text;
            }
            if (Convert.ToInt32(lookUpEdit3.EditValue) > 0)
            {
                filesNmae += " 制单:" + lookUpEdit3.Text;
            }
            filesNmae += "明细记录";
            string fileName = BaseFormClass.ShowSaveFileDialog("Excel文档", "Microsoft Excel|*.xls", filesNmae);

            if (fileName != "")
            {
                gridView2.ExportToXls(fileName);
                BaseFormClass.OpenFile(fileName);
            }
        }
コード例 #2
0
        private void _barToExcel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string fileName = BaseFormClass.ShowSaveFileDialog("Excel文档", "Microsoft Excel|*.xls", gridView1.GetFocusedRowCellDisplayText(_coName) + "的缝制说明");

            if (fileName != "")
            {
                gridView3.ExportToXls(fileName);
                BaseFormClass.OpenFile(fileName);
            }
        }
コード例 #3
0
        private void _barExcel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string fileName = BaseFormClass.ShowSaveFileDialog("Excel文档", "Microsoft Excel|*.xls");

            if (fileName != "")
            {
                gridView1.ExportToXls(fileName);
                BaseFormClass.OpenFile(fileName);
            }
        }