OnBeginBand in FR 3

TGDTGD
edited 6:30AM 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 6:30AM
    Use TfrxReport.OnBeforePrint event:

    if Sender.Name = 'DH1' then
    begin
  • renerene Prague, Czech Republic, Europe
    edited 6:30AM
    And what about OnBeginPage / OnEndPage ???
  • renerene Prague, Czech Republic, Europe
    edited 6:30AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.