插件获取"库存账龄分析报表"数据报错问题排查原创
金蝶云社区-邱育华
邱育华
4人赞赏了该文章 521次浏览 未经作者许可,禁止转载编辑于2022年11月15日 15:23:46

问题现象:

参考社区文章【二开案例.执行计划.获取并保存账表数据

获取"库存账龄分析报表"数据,报错提示:未将对象引用设置到对象的实例

image.png


解决方案:

把 

ReportServiceParameter param = new ReportServiceParameter(ctx, reportMetadata.BusinessInfo, Guid.NewGuid().ToString(), rptParams);
return new SysReportService().GetReportData(param);


换成

MoveReportServiceParameter param = new MoveReportServiceParameter(ctx, reportMetadata.BusinessInfo, Guid.NewGuid().ToString(), rptParam);
return SysReportServiceHelper.GetListAndReportData(param);


参考案例:

在插件中获取分页账表数据

赞 4