找回密码
 立即注册

QQ登录

只需一步,快速开始

zzxzr
银牌会员   /  发表于:2015-12-1 16:37:00
31#
你们这个控件用html5,加载二进制文件吗?
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-12-1 17:18:00
32#
回复 31楼zzxzr的帖子

请把你当前保存二进制的文件代码发送到论坛,我确认后和厂商沟通。
回复 使用道具 举报
zzxzr
银牌会员   /  发表于:2015-12-1 17:19:00
33#
Tx显示文件内容代码.docx (11.59 KB, 下载次数: 121)
回复 使用道具 举报
zzxzr
银牌会员   /  发表于:2015-12-1 17:30:00
34#
ls_rtfdata = uo_text.ole_text.Object.rtfseltext
lb_text = Blob(ls_rtfdata)

UpdateBlob emr_patient_doc
set doccontent = :lb_text
where docid = :al_docid;
数据库里,是Image类型保存的二进制数据
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-12-1 18:21:00
35#
回复 34楼zzxzr的帖子

已经在和厂商沟通,有进一步结果反馈给你。
回复 使用道具 举报
zzxzr
银牌会员   /  发表于:2015-12-2 10:59:00
36#
在不在?厂家有回复吗?昨天晚上,我试多种方法都不行,TextControl1.LoadTextAsync(),TextControl1.LoadDataSet,TextControl1.LoadDataSetAsync、TextControl1.LoadText、TextControl1.LoadTextAsync、TextControl1.LoadXMLDatabase、TextControl1.LoadXMLDatabaseAsync
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-12-2 11:01:00
37#
回复 36楼zzxzr的帖子

我这边可以正常加载二进制流文件:

  1.         protected void Button1_Click(object sender, EventArgs e)
  2.         {
  3.             // open a document using a temporary instance of ServerTextControl
  4.             // and save it into a byte array
  5.             // load the document from the byte array into the Web editor
  6.             using (TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl())
  7.             {
  8.                 tx.Create();
  9.                 TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();
  10.                 ls.ApplicationFieldFormat = TXTextControl.ApplicationFieldFormat.MSWord;

  11.                 tx.Load(Server.MapPath("Test.doc"),
  12.                     TXTextControl.StreamType.MSWord, ls);

  13.                 byte[] data;

  14.                 tx.Save(out data, TXTextControl.BinaryStreamType.InternalUnicodeFormat);
  15.                 TextControl1.LoadText(data, TXTextControl.Web.BinaryStreamType.InternalUnicodeFormat);
  16.             }
  17.         }
复制代码


Demo:
tx_upload.zip (210.37 KB, 下载次数: 101)
回复 使用道具 举报
zzxzr
银牌会员   /  发表于:2015-12-2 11:52:00
38#
QQ截图20151202115132.jpg (126.14 KB, 下载次数: 84)
回复 使用道具 举报
zzxzr
银牌会员   /  发表于:2015-12-2 11:54:00
39#
用你给我的Demo调试也出现这个错误。。。
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-12-2 12:10:00
40#
回复 39楼zzxzr的帖子

出现这个问题的原因是没有添加license文件。请查看你的property文件夹下有没有license.licx文件。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部