Essa é uma revisão anterior do documento!


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


1. Close the Report Designer.

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. Put the following code in the OnClick event handler of the button:

rbSectSub.Print;

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

7. Run the Project.

8. Click the Preview button. The report should be displayed in the Print Preview form. The first three pages should contain the Customer List report; the last thirty-nine pages should contain the Stock Summary report.

Note: The calculations for the Stock Summary report are not correct, and the color-coding for this report is gone. This is because we have not created the event handlers for this report. We will complete this task in the next section.

8. Clique no botão Preview. O relatório deve ser apresentado sob a forma de visualização. As três primeiras páginas devem conter o relatório Lista de Clientes; Nos últimos trinta e nove páginas devem conter o relatório da Síntese.

Nota: Os cálculos para o relatório da Síntese não estão corretas, e para isso o relatório de codificação de cores está desaparecido. Isto é porque nós não criamos os manipuladores de eventos para este relatório. Vamos concluir esta tarefa na próxima seção.