Part 6 – Adding a Word layout

In this section, together with the RDL layout, we will also add a Word layout to our report:

  1. Go to Report Layout Selection and filter for report ID 50111.
  2. Select Actions | Custom Layouts.
  3. Click New, select Insert Word layout, and click OK. This will add an empty Word layout to the report and reference the dataset structure as an XML mapping.
  4. Choose Process | Export Layout and save the Default.docx report into the .\Src\CustomerCategory\report folder. You might call the report layout Rep50111.ItemLedgerEntryAnalysis.docx.
  5. Bind the report to the RDL layout within the extension, change the default layout to Word, and change record sorting by specifying the following report properties in the AL report object. ...

Get Mastering Microsoft Dynamics 365 Business Central now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.