Strange Error with GroupHeader

Hi, I have a list of record that the I need to print but I have to insert a special row after every 10 rows of data. No problem as I use a groupheader and set the condition to <line> div 10. I also set the groupheader property "Keep Group Together" to true. Everything works pefectly until I have more than xxx rows. The report for some reason decides to print from row number 91 onwards as one per group not 10 anymore.

I have tried various different conditions with varying results:

<line> div 10 - prints fine up to line 90, line 91 onwards are all printed one at a time
<line#> div 10 - prints fine up to line 10, line 11 onwards are all printed one at a time
<line> mod 10 = 0 - prints fine up to line 90, line 91 is printed alone and the starts grouping line 92->101, 102->111 etc
<line#> mod 10 = 0 - prints fine up to line 90, line 91 is printed alone and the starts grouping line 92->100, 101->110, 111->120 etc

Am I missing something. Please help

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:25PM
    "No problem as I use a groupheader and set the condition to <line> div 10."
    this seems like an impossible condition for a group header.
    the codition of a group header is usually set to a value of some field of the record's being displayed
    I would try using your own typed integer variable initialize it to 0 at the start of the report,
    and an unattached child band.
    in the obp event of the masterdataband increment the variable, in the oap event of the same band check the value
    of the variable if it is = to 10 then call engine.showband(childband's name);
    then in the oap event of the childband reset the variable to 0

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.