📚 SAP Business One SDK Help

ExportRptAsXML Method
See Also 
rptPath
The path of the report
params

The parameter list of the report

  • For typical discrete value parameters, the value string is 0:value (0 is the type of the parameter)
  • For range value parameters, the value string contains two sub values, for example, 1:from, to
  • For multiple value parameters, the value string is: 2:value1,value2,…,valueN
  • If the report has no parameter defined, pass null or empty string

Description

Returns an XML string representation of the report.

Syntax

Visual Basic
Public Function ExportRptAsXML( _
   ByVal rptPath As String, _
   ByVal params As String _
) As String

Parameters

rptPath
The path of the report
params

The parameter list of the report

  • For typical discrete value parameters, the value string is 0:value (0 is the type of the parameter)
  • For range value parameters, the value string contains two sub values, for example, 1:from, to
  • For multiple value parameters, the value string is: 2:value1,value2,…,valueN
  • If the report has no parameter defined, pass null or empty string

Example

Assume that 1.rpt file has three parameters named Country (multi value), BalanceLowBound (discrete value), CreatedDate (range value), the add-on can call the following method to get the xml string exported:
SBO_Application.ExportRptAsXml("1.rpt", "Country=0:DE,US;BalanceLowBound=1:1000;CreatedDate=2:2010-01-01,2010-12-31");

See Also