The following control could not be licensed
保存数据的时候出现这个,为何啊。
TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl();
tx.Create();
tx.Load(data,TXTextControl.StreamType.InternalUnicodeFormat);
tx.Save(Server.MapPath("/template/documents/" + this.BusinessParams["BusinessKeyOID"].ToString() + ".tx"),TXTextControl.StreamType.InternalUnicodeFormat);
我的是这个版本 也加入了lice文件 本帖最后由 xcyapcc 于 2018-10-9 17:17 编辑
保存数据代码如下 js
$("#fileMnuItemSaveAs").on("click",function(){
TXTextControl.saveDocument(TXTextControl.StreamType.InternalUnicodeFormat, function (e) {
CallSetTemplate(BC_FileTemplateBase.getOID(),e.data)
});
return false;
});
服务:
public string SetTemplate(string OID,string data)
{
TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl();
tx.Create();
tx.Load(data,TXTextControl.StreamType.InternalUnicodeFormat);
tx.Save(Server.MapPath("/template/documents/" + OID + ".tx"),TXTextControl.StreamType.InternalUnicodeFormat);
return "";
}
我先在我这边测试一下看看 您好,您现在是在用试用版本授权还是正式授权呢 正式 已经好了,好像要把这个文件编译到程序中,不能直接放到相应的文件夹 是的,需要在程序中添加,一般拖动一个这个web控件到页面,license就好自动添加的
页:
[1]