找回密码
 立即注册

QQ登录

只需一步,快速开始

gogir

注册会员

5

主题

7

帖子

30

积分

注册会员

积分
30
最新发帖
gogir
注册会员   /  发表于:2019-6-4 11:41  /   查看:2907  /  回复:3



请问文档设置了部分段落权限控制后,文档保存速度很慢是什么原因?

3 个回复

倒序浏览
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-6-4 18:16:07
沙发
需要看一下你具体的代码才能确定问题,请将代码打包上传上来
回复 使用道具 举报
gogir
注册会员   /  发表于:2019-6-5 09:04:58
板凳
就是DEMO程序里面的Workflow这个例子。如果设置了可编辑区域后,保存的时候很慢。

  1.         private void frmEditor_FormClosing(object sender, FormClosingEventArgs e) {
  2.             // check whether editable regions have been added
  3.             if (textControl1.EditableRegions.Count == 0) {
  4.                 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?",
  5.                     "Document Editor", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No;
  6.             }

  7.             // save the document
  8.             byte[] bDocument = null;
  9.             textControl1.Save(out bDocument, TXTextControl.BinaryStreamType.InternalUnicodeFormat);
  10.             this.Document = bDocument;
  11.         }
复制代码


回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2019-6-5 09:40:07
地板
这个是产品目前本身存在的问题,暂时没有什么解决的办法
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部