插件调用套打模版
金蝶云社区-185xxxx3254
185xxxx3254
0人赞赏了该文章 2,146次浏览 未经作者许可,禁止转载编辑于2016年12月20日 17:17:53

表单插件调用套打,出现如下错误

插件代码:
Kingdee.BOS.Core.NotePrint.PrintJobItem print = new Kingdee.BOS.Core.NotePrint.PrintJobItem();
print.BillId = ""; //单据编码
print.FormId = "SAL_DELIVERYNOTICE";
print.TemplateId = "YF_ShipNoticePrice";//套打模板
print.SortString = "";
List printlist = new List();
printlist.Add(print);
string key = Guid.NewGuid().ToString();
this.View.Session[key] = printlist;
Kingdee.BOS.JSON.JSONObject jsonObj = new Kingdee.BOS.JSON.JSONObject();
jsonObj.Put("pageID", this.View.PageId);
jsonObj.Put("printerAddress", "127.0.0.1");//打印机地址
jsonObj.Put("printJobId", key);
this.View.AddAction(Kingdee.BOS.Core.Const.JSAction.print, jsonObj);