Skip to Content
0
May 22, 2018 at 03:01 PM

How can i print draft documents by SAP SDK?

115 Views

Dim oReportLayoutService As SAPbobsCOM.ReportLayoutsService
Dim oReporPrintParams As SAPbobsCOM.ReportLayoutPrintParams


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

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


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

oReportLayoutService.Print(oReporPrintParams)



When i try to print a draft document which its docEntry is just on the draft tables (ODRF) it print a blank pages. How can i solve this problem?