Essa é uma revisão anterior do documento!
Formatador de Relatório - ReportBuilder (Resumo do guia do desenvolvedor)
TUTORIAL DE RELATÓRIOS - Master / Detail - Relatório detalhado - Crie um grupo pelo campo 'OrderNo'
1. Select Report | Groups from the Report Designer main menu. The Groups dialog will be displayed.
2. Select plItem.OrderNo from the drop-down list at the top of the dialog and click the Add button. A new entry entitled Group[0]: plItem.OrderNo will be added to the list.
3. Click the OK button. You should see two new bands: one above and one below the detail band. These bands have no height; thus, no white space appears above the dividers.
Note: We created a group on the OrderNo field because this is the linking field between the Order and Item tables. This field value will never change during the course of the subreport's generation; thus, the group will never 'break'. The effect will be that the group header prints once at the beginning and once for all subsequent pages. The group footer will print once at the end. You can use this 'no break' technique whenever you need a separation header in a subreport.
1. Selecione Relatório | Grupos a partir do menu principal Report Designer. O diálogo Grupos será exibida.
2. Selecione plItem.OrderNo a partir da lista drop-down no topo da caixa de diálogo e clique no botão Add. Uma nova entrada intitulada Grupo [0]: plItem.OrderNo será adicionada à lista.
3. Clique no botão OK. Você deverá ver duas novas faixas: uma acima e outra abaixo da faixa de detalhes. Essas bandas não têm altura; Assim, nenhum espaço em branco aparece acima dos divisores.
Nota: Nós criamos um grupo no campo OrderNo porque este é o campo de ligação entre a Ordem e as tabelas de Item. O valor deste campo nunca vai mudar durante o curso da geração do sub-relatório; Assim, o grupo nunca vai 'quebrar'. O efeito será que as impressões cabeçalho do grupo uma vez no início e uma vez para todas as páginas subseqüentes. O rodapé de grupo será impressa uma vez no final. Você pode usar esta técnica 'no break' sempre que você precisar de um cabeçalho de separação em um sub-relatório.
4. Set the height of the new bands:
Group Header Band 0.30 Group Footer Band 0.45
5. Select File | Save from the Delphi main menu.