找回密码
 立即注册

QQ登录

只需一步,快速开始

zzxzr
银牌会员   /  发表于:2015-12-3 17:24:00
51#
我再安装一下VS2013试试
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-12-4 08:46:00
52#
回复 51楼zzxzr的帖子

现在情况如何?
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-12-4 09:42:00
53#
回复 50楼zzxzr的帖子

出现50#问题的原因是当前tx控件还没有在 form 上加载,所以无法使用。

不能在form_loaded事件中调用,可以添加一个button测试下
回复 使用道具 举报
zzxzr
银牌会员   /  发表于:2015-12-4 11:12:00
54#
QQ截图996.jpg (201.48 KB, 下载次数: 118)
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-12-4 13:55:00
55#
回复 54楼zzxzr的帖子

问题已经通过电话沟通,我需要查看下你的环境,再提供处理办法。
回复 使用道具 举报
zzxzr
银牌会员   /  发表于:2015-12-7 09:07:00
56#
在不在,今天能远程操作吗?
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2015-12-7 09:22:00
57#
回复 56楼zzxzr的帖子

下午三点半我们开一个视频会议,看看你的环境,到时我会电话联系您。
回复 使用道具 举报
zzxzr
银牌会员   /  发表于:2015-12-8 09:38:00
58#
我们这边测试时能从数据库表中取出二进制数据,并显示到页面上,现在又一个新问题,以前那个表中存储的是以rtf格式存进去的二进制文件,我想问一下,现在这个Tx控件提取rtf二进制文件,如何在页面上显示出来。。。
回复 使用道具 举报
gw0506
超级版主   /  发表于:2015-12-8 10:23:00
59#
C:\Program Files\Text Control GmbH\TX Text Control 22.0.NET Server for ASP.NET\assembly\TXTextControl.Web.dll    检查一下这里有没有此dll。这个用来确认一楼,二楼的问题。
回复 使用道具 举报
gw0506
超级版主   /  发表于:2015-12-8 14:53:00
60#
关于读取rtf,你可以在文档中找到详细的帮助,包括代码和操作。ASP.NET User's Guide -> Document Automation -> Example - Loading and Saving
  1. [C#]
  2. protected void Button1_Click(object sender, EventArgs e)
  3. {
  4.         // create a new instance of ServerTextControl
  5.         using (TXTextControl.ServerTextControl tx =
  6.                 new TXTextControl.ServerTextControl())
  7.         {
  8.                 // load the document
  9.                 tx.Create();
  10.                 tx.Load(Server.MapPath("/documents/sample.docx"),
  11.                         TXTextControl.StreamType.WordprocessingML);
  12.                 // save the document in the internal format to a byte array
  13.                 byte[] data;
  14.                 tx.Save(out data, TXTextControl.BinaryStreamType.InternalUnicodeFormat);
  15.                 // load the byte array into the read-only DocumentViewer
  16.                 DocumentViewer1.LoadDocumentFromMemory(data,
  17.                         TXTextControl.DocumentServer.FileFormat.InternalUnicodeFormat);
  18.         }
  19.         btn_DownloadDocument.Visible = true;
  20. }
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部