title | description | ms.author | ms.date | ms.topic | author | ms.reviewer |
---|---|---|---|---|---|---|
Report.WordXmlPart([Boolean]) Method |
Gets the report data structure as structured XML that is compatible with Microsoft Word custom XML parts. |
solsen |
05/14/2024 |
reference |
SusanneWindfeldPedersen |
solsen |
Version: Available or changed with runtime version 1.0.
Gets the report data structure as structured XML that is compatible with Microsoft Word custom XML parts.
String := Report.WordXmlPart([ExtendedFormat: Boolean])
Report
Type: Report
An instance of the Report data type.
[Optional] ExtendedFormat
Type: Boolean
If you set this variable to true, then XML elements will include the following attributes:
- ElementType="Parameter|Column|DataItem". Specifies the element type as defined for the report in Report Designer. Parameter is typically used for elements, such as captions.
- ElementId="ID". Specifies the ID that is assigned to the element by its ID Property.
- DataType="Type". Specifies the data type of the element. If you omit this parameter or set it to false, then the element attributes are not included in the XML.
String
Type: Text
A string representation of the report data structure as structured XML that is compatible with Microsoft Word custom XML parts.
[!INCLUDEWordXmlPart]
[!INCLUDEexample-1]
var
ReportAsXmlString: Text;
MyReport: Report Report6;
begin
ReportAsXmlString := MyReport.WordXmlPart();
end;
[!INCLUDEexample-2]