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. Consider ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.