resset row number in per page

edited February 2009 in FastReport 4.0
hi
(delphi2009,fastreport 4.7.22)
how to reset row number "<Line#>" in per page
page1: 1..30
page2:1..30
page3:1..30
.
.
.
thanx
sorry for bad english

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 5:23AM
    easiest is to use your own variable reset to 0 in page header obp event
    increment it in databand obp event.
    IIRC line and line# were designed for working with groups
  • edited February 2009
    procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
    begin
    
    end;
    
    begin
    
    end.
    

    HOW TO WORK??
  • gordkgordk St.Catherines On. Canada.
    edited 5:23AM
    typical code

    var myline:integer;

    procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
    begin
    increment(myline);
    end;

    procedure Pageheader1OnBeforePrint(Sender: TfrxComponent);
    begin
    myline := 0;
    end;
    begin

    end.
  • edited 5:23AM
    thank you qordk >

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.