Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Próxima revisão | Revisão anterior | ||
manual_usuario:outros:formatadorrelatoriodesenv:fr_20_preview_report_run_time [2014/12/19 15:42] administrador criada |
manual_usuario:outros:formatadorrelatoriodesenv:fr_20_preview_report_run_time [2015/02/11 14:30] (atual) administrador Aprovado |
||
---|---|---|---|
Linha 7: | Linha 7: | ||
- | =====TUTORIAL DE RELATÓRIOS - B - C===== | + | =====TUTORIAL DE RELATÓRIOS - Conectando relatórios juntos com sub-relatórios de seção - Visualizar o relatório em tempo de execução===== |
---- | ---- | ||
- | 1. Close the Report Designer. | + | 1. Feche o Report Designer. |
- | 2. Select the Standard tab of the Delphi component palette. | + | 2. Selecione a guia Standard da paleta de componentes do Delphi. |
- | 3. Add a Button component to the form. | + | 3. Adicione o componente Button component ao form. |
- | 4. Configure the Button component: | + | 4. Configure o componente Button: |
Name btnPreview | Name btnPreview | ||
Caption Preview | Caption Preview | ||
- | 5. Put the following code in the OnClick event handler of the button: | + | 5. Coloque o seguinte código no evento OnClick do botão: |
rbSectSub.Print; | rbSectSub.Print; | ||
- | 6. Select File | Save from the Delphi main menu. | + | 6. Selecione "File | Save" no menu do Delphi. |
- | 7. Run the Project. | + | 7. Execute o projeto. |
+ | |||
+ | 8. Clique no botão Preview. O relatório deve ser apresentado para visualização. As três primeiras páginas devem conter o relatório "Customer List"; Nas últimas trinta e nove páginas devem conter o relatório Resumo. | ||
+ | |||
+ | **Nota:** Os cálculos para o relatório Resumo não estão corretos, e por isso o relatório de codificação de cores está desaparecido. Isto é porque nós não criamos os eventos para este relatório. Vamos concluir esta tarefa na próxima seção. | ||
- | 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. | ||