{"title":"Report.FormatRegion([Text]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/report/reportinstance-formatregion-method/","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/methods-auto/report/reportinstance-formatregion-method, 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/methods-auto/report/reportinstance-formatregion-method","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":"Gets or sets the current format region setting for the report.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Report.FormatRegion([Text]) Method","slug":"reportformatregiontext-method","at":0,"chars":2076},{"level":2,"title":"Syntax","slug":"syntax","at":161,"chars":155},{"level":2,"title":"Parameters","slug":"parameters","at":316,"chars":192},{"level":2,"title":"Return Value","slug":"return-value","at":508,"chars":128},{"level":2,"title":"Example","slug":"example","at":636,"chars":1238},{"level":2,"title":"Related information","slug":"related-information","at":1874,"chars":202}],"text":"# Report.FormatRegion([Text]) Method\n> Version: _Available or changed with runtime version 11.0._\nGets or sets the current format region setting for the report.\n## Syntax\n```al\n[CurrentFormatRegion := ]  Report.FormatRegion([FormatRegion: Text])\n```\n> NOTE\n> This method can be invoked using property access syntax.\n## Parameters\nReport\nType: report-data-type\nAn instance of the report-data-type data type.\n*[Optional] FormatRegion*\nType: ../text/text-data-type\nThe new format region setting for the report.\n## Return Value\n*[Optional] CurrentFormatRegion*\nType: ../text/text-data-type\nThe current format region setting for the report.\n## Example\nIf you have reports that you want to print using a format that is aligned with the recepient rather than in your own working region, you can add a few lines of code in the report to handle this. In this example we will take the assumption that the format region will be aligned with the language in the current report run and that the report does not have native support for format region. The document is printed in the language that is specified in the Language Code field on the Customer Card page.\nIn reports that need the multiple document format functionality, you can insert the following AL code as the first lines in the `OnAfterGetRecord()` trigger on the data item referencing the Customer table (notice that that feature is not limited to the Customer table, other data sources provides similar functionality.):\n```al\ntrigger OnAfterGetRecord()\nvar\n    LanguageSelection: Record \"Language Selection\";\n    Language: Codeunit Language;\nbegin\n    CurrReport.Language := Language.GetLanguageIdOrDefault(\"Language Code\");\n\n    LanguageSelection.SetFilter(\"Language ID\", format(CurrReport.Language));\n    if LanguageSelection.FindFirst() then\n        CurrReport.FormatRegion := LanguageSelection.\"Language Tag\";\nend;\n```\n## Related information\n../../devenv-report-localization\nreportinstance-language-method\nreport-data-type\nGetting Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}