{"title":"WordLayout Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-wordlayout-property/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-wordlayout-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-wordlayout-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Sets the Word layout that is used on a report and returns it as a data stream.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":139,"chars":135},{"level":2,"title":"Remarks","slug":"remarks","at":274,"chars":827},{"level":2,"title":"Example","slug":"example","at":1101,"chars":356},{"level":2,"title":"Related information","slug":"related-information","at":1457,"chars":175}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets the Word layout that is used on a report and returns it as a data stream.\n## Applies to\n Report\n Report Extension\n> NOTE\n> Reports support both Excel, RDL, and Word layouts. See devenv-defaultlayout-property.\n## Remarks\nThe Word file must be in the same folder as the AL object.\n> WARNING\n> Using the report properties DefaultLayout, ExcelLayout, RDLCLayout, and WordLayout should be avoided as these properties will be deprecated in a later release. Instead, it's recommended to use the property DefaultRenderingLayout together with the new rendering syntax introduced in runtime version 9.0.\n> In Visual Studio Code, when hovering over any line with the ExcelLayout, RDLLayout, or WordLayout property, you can use the code action Convert to 'Rendering' to convert to the new rendering syntax.\n> See devenv-defaultrenderinglayout-property.\n> The use of any of these report properties impact performance as every call loads the full layout in memory even if the intent is only to check if a given report had a layout of the given type.\n## Example\nThe following example shows how to use this property to generate the MyWordReport.docx file.\n```al\npageextension 50100 MyExtension extends \"Customer List\"\n{\n    trigger OnOpenPage();\n    begin\n        report.Run(Report::MyWordReport);\n    end;\n}\n\nreport 50124 MyWordReport\n{\n    DefaultLayout = Word;\n    WordLayout = 'MyWordReport.docx';\n}\n```\n## Related information\nCreating a Word Layout Report<../devenv-howto-report-layout>\ndevenv-rdlclayout-property\nCreating an RDL Layout Report<../devenv-howto-rdl-report-layout>"}