就是DEMO程序里面的Workflow这个例子。如果设置了可编辑区域后,保存的时候很慢。
- private void frmEditor_FormClosing(object sender, FormClosingEventArgs e) {
- // check whether editable regions have been added
- if (textControl1.EditableRegions.Count == 0) {
- e.Cancel = MessageBox.Show("You did not create any editable regions. To test this functionality, please add at least one editable region.\r\nDo you want to exit anyway?",
- "Document Editor", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No;
- }
- // save the document
- byte[] bDocument = null;
- textControl1.Save(out bDocument, TXTextControl.BinaryStreamType.InternalUnicodeFormat);
- this.Document = bDocument;
- }
复制代码
|