With the depreciation of the “WordLayout” syntax in AL, FORNAV is migrating to use the new “rendering” layout syntax.
This means that, moving forward, the syntax is changed from, for example:
WordLayout = ‘.\Layouts\ForNAVAssemblyOrder.docx’;
DefaultLayout = Word;
To the new rendering syntax, for example:
DefaultRenderingLayout = FORNAV;
…
rendering
{
layout(FORNAV)
{
Type = Custom;
MimeType = ‘FORNAV’;
LayoutFile = ‘.\Layouts\ForNAVAssemblyOrder.docx’;
}
}
In this process, the FORNAV Layout format will also be moved to use the layout type “Custom”, with the MimeType “FORNAV”, instead of Word.
To control this, the FORNAV Designer has a new Layout code generation field, on the Designer tab, in the Settings dialog, with the following options:
- Default – the existing report will keep the current layout syntax. New reports will get the new syntax when created using the Custom Report Pack version 8.0 or later, or the old syntax if they are created using an older version.
- Single – will always use the old syntax.
- Multiple – will always use the new syntax.