Ejemplo n.º 1
0
        private void btnExport_Click(object sender, EventArgs e)
        {
            string savedPath = GetSavedPath();

            if (string.IsNullOrEmpty(savedPath))
            {
                return;
            }

            ExportWordUtility exportWordUtility = new ExportWordUtility();

            if (exportWordUtility.WordEstablish(savedPath, focusedCreatTime))
            {
                XtraMessageBox.Show("Word导出成功!", "提示", MessageBoxButtons.OK);
            }
        }
Ejemplo n.º 2
0
        private void exportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string savedPath             = GetSavedPath();
            string focusedRowsCreateTime = this.viewRoom.GetFocusedRowCellValue("CreateTime").ToString();

            if (string.IsNullOrEmpty(savedPath))
            {
                return;
            }
            ExportWordUtility exportWordUtility = new ExportWordUtility();

            if (exportWordUtility.WordEstablish(savedPath, focusedRowsCreateTime))
            {
                XtraMessageBox.Show("Word导出成功!", "提示", MessageBoxButtons.OK);
            }
        }