manual_usuario:outros:formatadorrelatoriodesenv:fr_18_complete_layout_subreport1

Essa é uma revisão anterior do documento!


<fs x-large>Formatador de Relatório - ReportBuilder (Resumo do guia do desenvolvedor)</fs>

TUTORIAL DE RELATÓRIOS - B - C


1. Click the 'SubReport1' tab.

2. Right-click over the Orderno DBText component located on the far left side of the detail band. Set the ReprintOnOverFlow menu option to True.

Note: OverFlow occurs when the detail band runs out of page space on the current page and must complete printing on the next page. For this report we want to print the ItemNo followed by 'Continued…' at the top of the page when the orders for a given customer overflow onto an additional page.

3. Place a label in the detail band and configure it:

Caption Continued...
Name lblContinued
Visible False
Font Name Times New Roman
Font Size 10
Font Style Regular
Font Color Black
Text Alignment Left justified

4. Select the SaleDate DBText component, then Shift-click the Continued label.

5. Click the Align Top and Align Left icons on the Align or Space toolbar.

6. Add the following code to OnPrint event of the Continued label:

lblContinued.Visible := ppChildReport1.Detail.OverFlow;

7. Select Project | Compile rbMDDProj. Fix any compilation problems.

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

Note: The OverFlow property of the detail band will only be True when the orders for the current customer do not fit on the page and therefore must overflow onto an additional page. When this happens, the label will be visible.

manual_usuario/outros/formatadorrelatoriodesenv/fr_18_complete_layout_subreport1.1418999599.txt.gz · Última modificação: (edição externa)