# MaximumDocumentCount Property
> Version: _Available or changed with runtime version 6.0._
Sets the maximum document count when generating a report by using WordMergerDataItem.
## Applies to
 Report
## Property Value
An integer
## Syntax
```al
MaximumDocumentCount = 100;
```
## Remarks
At runtime, this property will override the hard limit that is set by the Default Max Documents (ReportDefaultMaxDocuments) setting for Business Central Server instance. The Business Central Server instance also includes the Max Documents (hard limit) (ReportMaxDocuments) setting, which this property won't override.
For more information on report limits, see ../devenv-report-object#report-limits.
## Related information
devenv-report-properties
../devenv-report-object
Operational Limits for Business Central Online - Reports<../../administration/operational-limits-online#Reports>
Configuring Business Central Server - Reports<../../administration/server-instance-settings#control-reports-documents-and-data-queries>

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-maximumdocumentcount-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. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-maximumdocumentcount-property/
