Description
Retrieves the default report layout for a specific document type.
Syntax
Parameters
Remarks
Example
| Getting a default report layout (Visual Basic) | Copy Code |
|---|
Dim oCmpSrv As SAPbobsCOM.CompanyService
Dim oReportLayoutService As ReportLayoutsService
Dim oReportLayout As ReportLayout
Dim oReportParam As ReportParams
oCmpSrv = oCompany.GetCompanyService
oReportLayoutService = oCmpSrv.GetBusinessService(ServiceTypes.ReportLayoutsService)
oReportParam = oReportLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiReportParams)
oReportParam.ReportCode = "POR2"
oReportLayout = oReportLayoutService.GetDefaultReportLayout(oReportParam)
Debug.WriteLine(oReportLayout.Name)
|
|
See Also