打印凭证Ap发票sdk

2020-08-14 16:34发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)我在执行代码时执行此代码以打印A...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


我在执行代码时执行此代码以打印Ap发票而无法正常工作

 SAPbobsCOM.ReportLayoutsService oReportLayoutService =(SAPbobsCOM.ReportLayoutsService)var_public.Vcmp.GetCompanyService()。GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService);
             SAPbobsCOM.ReportLayoutPrintParams oReporPrintParams = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutPrintParams);
             SAPbobsCOM.ReportParams oReportParam = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportParams);
             oReportParam.ReportCode =" PCH2";
             SAPbobsCOM.DefaultReportParams oReportParaDefault = oReportLayoutService.GetDefaultReport(oReportParam);
             oReporPrintParams.LayoutCode =" PCH20002";
             oReporPrintParams.DocEntry = Convert.ToInt32(38259);
             oReportLayoutService.Print(oReporPrintParams);