# Report.PrintOnlyIfDetail([Boolean]) Method
> Version: _Available or changed with runtime version 1.0._
Gets or sets the current settings of the PrintOnlyIfDetail property.
> NOTE
> From runtime version 10.1 and onward, this method is supported in Business Central online.
## Syntax
```al
[IsPrintOnlyIfDetail := ]  Report.PrintOnlyIfDetail([SetPrintOnlyIfDetail: Boolean])
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
Report
Type: report-data-type
An instance of the report-data-type data type.
*[Optional] SetPrintOnlyIfDetail*
Type: ../boolean/boolean-data-type
The new setting of PrintOnlyIfDetail property.
## Return Value
*[Optional] IsPrintOnlyIfDetail*
Type: ../boolean/boolean-data-type
The current settings of the PrintOnlyIfDetail property.
## Example 1
The following example is from the OnAfterGetRecord trigger of a report. If the PrintOnlyIfDetail property is true and if a GLEntryPage record exists, given the current filters, then the PageGroupNo is incremented.
```al
var
    GLEntryPage: Record "G/L Entry";
    PageGroupNo: Integer;
begin
    if CurrReport.PrintONLYifDETAIL and GLEntryPage.Find('-') then
      PageGroupNo := PageGroupNo + 1;
end;
```
## Example 2
The following example sets the value of the ../../properties/devenv-printonlyifdetail-property to true. It requires that you create a Report variable named Report111. The Subtype of the variable is report 111, Customer - Top 10 List.
```
IsPrintOnlyIfDetail := Report111.PrintONLYifDETAIL(true);
```
## Related information
report-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

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-printonlyifdetail-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. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/report/reportinstance-printonlyifdetail-method/
