Essa é uma revisão anterior do documento!


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


1. Close the Report Designer window.

2. Select the Standard tab of the Delphi component palette.

3. Add a Button component to the form.

4. Configure the Button component:

Name btnPreview
Caption Preview

5. Add the following code to the OnClick event handler of the button:

rbCustomerList.Print;

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

7. Run the Project.

8. Click on the Preview button. The DeviceType property of the report component defaults to Screen; thus, the report automatically displays the Print Preview form when the Print method is called. The Preview form should look like this: