OnBeginBand in FR 3

TGDTGD
edited 10:28PM in FastReport 3.0
Hi to all,

My old procedure previewed to use a function before print the band:

if Band.Name = 'DH1' then
begin
DM.ArcTabL.Query(#0);
if DM.ArcTabL.Query('CodTab = "' + DM.BOFTes.FieldByName
etc etc.

but it doesen't exists anymore in new FR3 release

how do that? May someone write a sample code for me?
thanx

TGD

Comments

  • edited 10:28PM
    Use TfrxReport.OnBeforePrint event:

    if Sender.Name = 'DH1' then
    begin
  • renerene Prague, Czech Republic, Europe
    edited 10:28PM
    And what about OnBeginPage / OnEndPage ???
  • renerene Prague, Czech Republic, Europe
    edited 10:28PM
    Well, I have found some event at frxEngine:
    OnRunDialog(Page: TfrxDialogPage);
    
    This is not exactly the same, but helps me a little bit.

    Note: If you just want to do some action before and after dialog do not forget to call:
    Page.ShowModal;
    

Leave a Comment