插件调用套打打印 能打印出来但是提示错误信息

插件代码如下:
if (e.BarItemKey.ToUpperInvariant() == "TBMGPRINT")
{
Kingdee.BOS.Core.NotePrint.PrintJobItem print = new Kingdee.BOS.Core.NotePrint.PrintJobItem();
string fid = this.View.Model.DataObject["Id"].ToString();
print.BillId = fid;
print.FormId = "k97102e4ca76e473097faa6ddde53768d";
print.TemplateId = "dff4d5fb-4e92-4c67-bb6c-03f99fb67f97";//套打模板
print.SortString = "";
List<Kingdee.BOS.Core.NotePrint.PrintJobItem> printlist = new List<Kingdee.BOS.Core.NotePrint.PrintJobItem>();
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", "");//打印机地址
jsonObj.Put("printJobId", key);
this.View.AddAction(Kingdee.BOS.Core.Const.JSAction.print, jsonObj);
}

报错提示:

 

问题名称:插件调用套打打印 能打印出来但是提示错误信息

点击链接查看答案:

https://club.kingdee.com/forum.php?mod=viewthread&tid=1496483

未经允许不得转载:友商问答 » 插件调用套打打印 能打印出来但是提示错误信息

赞 (0)