zzxzr
发表于 2015-12-3 17:24:00
我再安装一下VS2013试试
iceman
发表于 2015-12-4 08:46:00
回复 51楼zzxzr的帖子
现在情况如何?
iceman
发表于 2015-12-4 09:42:00
回复 50楼zzxzr的帖子
出现50#问题的原因是当前tx控件还没有在 form 上加载,所以无法使用。
不能在form_loaded事件中调用,可以添加一个button测试下
zzxzr
发表于 2015-12-4 11:12:00
但是,我往页面上拉个控件出错
iceman
发表于 2015-12-4 13:55:00
回复 54楼zzxzr的帖子
问题已经通过电话沟通,我需要查看下你的环境,再提供处理办法。
zzxzr
发表于 2015-12-7 09:07:00
在不在,今天能远程操作吗?
iceman
发表于 2015-12-7 09:22:00
回复 56楼zzxzr的帖子
下午三点半我们开一个视频会议,看看你的环境,到时我会电话联系您。
zzxzr
发表于 2015-12-8 09:38:00
我们这边测试时能从数据库表中取出二进制数据,并显示到页面上,现在又一个新问题,以前那个表中存储的是以rtf格式存进去的二进制文件,我想问一下,现在这个Tx控件提取rtf二进制文件,如何在页面上显示出来。。。
gw0506
发表于 2015-12-8 10:23:00
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
关于读取rtf,你可以在文档中找到详细的帮助,包括代码和操作。ASP.NET User's Guide -> Document Automation -> Example - Loading and Saving
protected void Button1_Click(object sender, EventArgs e)
{
// create a new instance of ServerTextControl
using (TXTextControl.ServerTextControl tx =
new TXTextControl.ServerTextControl())
{
// load the document
tx.Create();
tx.Load(Server.MapPath("/documents/sample.docx"),
TXTextControl.StreamType.WordprocessingML);
// save the document in the internal format to a byte array
byte[] data;
tx.Save(out data, TXTextControl.BinaryStreamType.InternalUnicodeFormat);
// load the byte array into the read-only DocumentViewer
DocumentViewer1.LoadDocumentFromMemory(data,
TXTextControl.DocumentServer.FileFormat.InternalUnicodeFormat);
}
btn_DownloadDocument.Visible = true;
}