| 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
Returns an XML string representation of the report.
- 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
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");
SBO_Application.ExportRptAsXml("1.rpt", "Country=0:DE,US;BalanceLowBound=1:1000;CreatedDate=2:2010-01-01,2010-12-31");