Essa é uma revisão anterior do documento!
Formatador de Relatório - ReportBuilder (Resumo do guia do desenvolvedor)
TUTORIAL DE RELATÓRIOS - B - C
1. Re-open the form containing the Stock Summary report (rbStock.pas).
2. Locate the event handler declarations in the form declaration at the top of the unit.
3. Copy the following event handler declarations into your clipboard:
procedure ppGroupHeaderBand1BeforeGenerate; procedure ppDetailBand1BeforeGenerate; procedure vrBuyTotalCalc; procedure vrHoldTotalCalc; procedure vrSellTotalCalc;
4. Locate the form class declaration at the top of the rbSectSR unit.
5. Paste the event handler declaration immediately above the private section of the form class declaration.
Note: You may have noticed that the Delphi Form Designer automatically adds declarations to the mysteriously unlabeled section at the top of your form class declaration. This is actually the published section of the form class. Declarations for all of the event handlers and components within a form are placed in the published section in order to facilitate the streaming logic used to load and save forms to dfm files. By pasting these declarations into the published section of the form (and pasting the corresponding implementations in the unit), we make these event handlers assignable from the Object Inspector.
6. Return to the rbStock unit and copy the 'FRecommendation' variable from the private section of the form class declaration.
7. Return to the rbSectSR unit and paste this variable into the private section of the form class declaration.
8. Return to the rbStock unit.
9. Scroll down to the implementation section of the unit and copy all of the event handlers, save the TfrmStockSummary.btnPreviewClick event.
10. Return to the rbSectSR unit and paste the event handlers in the implementation section of the unit.
11. Select File | Save from the Delphi main menu.
12. Return to the rbStock unit. Right-click over the code editor and select Close Page to close this unit.