我已经从新安装TX控件还是不行,还提示那个错, using (TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl())
{
tx.Create();
TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();
ls.ApplicationFieldFormat = TXTextControl.ApplicationFieldFormat.MSWord;
tx.Load(Server.MapPath("Test.doc"),
TXTextControl.StreamType.MSWord, ls);
byte[] data;
tx.Save(out data, TXTextControl.BinaryStreamType.InternalUnicodeFormat);
TextControl1.LoadText(data, TXTextControl.Web.BinaryStreamType.InternalUnicodeFormat);
}
不用这种代码,能读取二进制文件吗?因为用这种方式,必须用licenses.licx,一用这个licenses.licx,我边就出错。。。 |