如何通过SAP SDK打印草稿文档?

2020-09-01 21:36发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)将oReportLayoutSe...

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

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


将oReportLayoutService用作SAPbobsCOM.ReportLayoutsService
 昏暗的oReporPrintParams作为SAPbobsCOM.ReportLayoutPrintParams


 oReportLayoutService = oCompany.GetCompanyService()。GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService)

 oReporPrintParams = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutPrintParams)


 oReporPrintParams.LayoutCode =" INV20018"
 oReporPrintParams.DocEntry = docEntry

 oReportLayoutService.Print(oReporPrintParams)



 当我尝试打印其docEntry仅在草稿表(ODRF)上的草稿文档时,它会打印空白页。 我该如何解决这个问题?