Class

# RBReportDocument

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Used to store the report pages after a report has been run. It is part of the `Reports Module</api/printing/reporting/reports_module>` module.

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                    | Parameters                                  | Returns                            | Shared |
|-----------------------------------------|---------------------------------------------|------------------------------------|--------|
| `Page<rbreportdocument.page>`           | Index As `Integer</api/data_types/integer>` | `Picture</api/graphics/picture>`   |        |
| `PageCount<rbreportdocument.pagecount>` |                                             | `Integer</api/data_types/integer>` |        |
| `Print<rbreportdocument.print>`         | g As `Graphics</api/graphics/graphics>`     |                                    |        |

## Method descriptions

<div id="rbreportdocument.page">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

RBReportDocument.Page

**Page**(Index As `Integer</api/data_types/integer>`) As `Picture</api/graphics/picture>`

> Returns the passed page as a `Picture</api/graphics/picture>`. Page is 1-based.

<div id="rbreportdocument.pagecount">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

RBReportDocument.PageCount

**PageCount** As `Integer</api/data_types/integer>`

> Returns the number of pages rendered.

<div id="rbreportdocument.print">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

RBReportDocument.Print

**Print**(g As `Graphics</api/graphics/graphics>`)

> Prints the pages to the specified graphics output device.

## Notes

The <span class="title-ref">RBReportDocument</span> class is part of the `Reports Module</api/printing/reporting/reports_module>` module. It returns the document after a report has been run. A report consists of one or more pages as `Picture</api/graphics/picture>` objects. You can refer to a page using its index. You can display the pages to the user in a `Canvas</api/user_interface/desktop/desktopcanvas>` control or print the pages.

## Compatibility

|                       |         |
|-----------------------|---------|
| **Project Types**     | Desktop |
| **Operating Systems** | All     |

<div class="seealso">

`Object</api/data_types/additional_types/object>` parent class; `Reports Module</api/printing/reporting/reports_module>` module; `Report</api/printing/reporting/report>` class; `Displaying Reports</topics/printing/the_report_editor/displaying_reports>` topic

</div>
