📚 SAP Business One SDK Help

DeleteReportLayout Method
See Also  Example
pIReportLayoutParams

A pointer to a ReportLayoutParams object.

Syntax

Visual Basic
Public Sub DeleteReportLayout( _
   ByVal pIReportLayoutParams As ReportLayoutParams _
) 

Parameters

pIReportLayoutParams

A pointer to a ReportLayoutParams object.

Example

Deleting a report layout (Visual Basic)Copy Code
Dim oCmpSrv As SAPbobsCOM.CompanyService
Dim oReportLayoutService As ReportLayoutsService
Dim oReportLayoutParams As ReportLayoutParams

'Get report layout service
oCmpSrv = oCompany.GetCompanyService
oReportLayoutService = oCmpSrv.GetBusinessService(ServiceTypes.ReportLayoutsService)

'Set parameters
oReportLayoutParams = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutParams)
oReportLayoutParams.LayoutCode = "POR20002"

'Delete report layout
oReportLayoutService.DeleteReportLayout(oReportLayoutParams)

See Also