Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 2.25 KB

reportinstance-wordxmlpart-method.md

File metadata and controls

69 lines (52 loc) · 2.25 KB
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

Report.WordXmlPart([Boolean]) Method

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.

Syntax

String :=   Report.WordXmlPart([ExtendedFormat: Boolean])

Parameters

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.

Return Value

String
 Type: Text
A string representation of the report data structure as structured XML that is compatible with Microsoft Word custom XML parts.

Remarks

[!INCLUDEWordXmlPart]

Example

[!INCLUDEexample-1]

var
    ReportAsXmlString: Text;
    MyReport: Report Report6;
begin
    ReportAsXmlString := MyReport.WordXmlPart();  
end;

[!INCLUDEexample-2]

See Also

Report Data Type
Get Started with AL
Developing Extensions