Essa é uma revisão anterior do documento!


Formatador de Relatório - ReportBuilder (Resumo do guia do desenvolvedor)


1. Scroll right until the edge of the footer band is visible.

2. Click the SystemVariable component icon on the Report Designer component palette.

3. Click on the far right side of the footer band. A SystemVariable component will be created.

4. Use the drop-down list on the left side of the Report Designer to select the PageSetDesc variable type. Page 1 of 1 should be displayed in the component.

5. Position the component at the top right corner of the footer band.

6. Right-justify the component by clicking on the right-justify icon on the Format toolbar.

7. Scroll to the left, hold down the Shift key, and select the PrintDateTime System Variable.

8. Click the Align Top icon on the Align or Space toolbar.

9. Click the Select Report icon , which appears at upper left corner of the Report Designer where the horizontal and vertical rulers meet. This will select the report component in the Object Inspector.

10. Locate the PassSetting property of the Report in the Object Inspector.

11. Make sure it is set to psTwoPass. This property is set automatically when you select a SystemVariable type that requires a Page Count.

Note: Setting the report PassSetting on psTwoPass will cause the report engine to generate all of the pages automatically. One-pass reports only generate the first page, and then any pages requested after that. This does not allow the report to calculate the total number of pages. Two-pass reports are required whenever you are using the Page-Count in a System Variable.

12. Select File | Save from the Delphi main menu.

13. Click the Preview tab in the Report Designer.