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_11_preview_report_run_time [2014/12/16 14:17] administrador criada |
manual_usuario:outros:formatadorrelatoriodesenv:fr_11_preview_report_run_time [2015/01/22 13:18] (atual) administrador Aprovado |
||
---|---|---|---|
Linha 7: | Linha 7: | ||
- | =====TUTORIAL DE RELATÓRIOS - B - C===== | + | =====TUTORIAL DE RELATÓRIOS - Criando um relatório via árvore de dados - Visualizar o relatório em tempo de execução===== |
---- | ---- | ||
- | 1. Close the Report Designer window. | + | 1. Feche a janela do 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 no form. |
- | 4. Configure the Button component: | + | 4. Configure o componente Button: |
Name btnPreview | Name btnPreview | ||
Caption Preview | Caption Preview | ||
| | ||
- | 5. Add the following code to the OnClick event handler of the button: | + | 5. Adicione o seguinte código ao evento OnClick do botão: |
rbCustomerList.Print; | rbCustomerList.Print; | ||
- | 6. Select File | Save from the Delphi main menu. | + | 6. Selecione "File | Save" a partir do menu principal Delphi. |
- | 7. Run the Project. | + | 7. Executar o projeto. |
- | 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: | + | 8. Clique no botão Preview. A propriedade DeviceType padrão para o componente report é Screen; Assim, o relatório mostra automaticamente a visualização da impressão quando o método de impressão é chamado. A forma de visualização deve ficar assim: |
{{ :manual_usuario:outros:formatador_desenv_138.png?600 |}} | {{ :manual_usuario:outros:formatador_desenv_138.png?600 |}} | ||