DBCross - how to make an additional summary row?

edited August 2010 in FastReport 4.0
Urgent!

I have to have two GrandTotal Row: Sum and second - average.

How to make additional summary row with average of columns data.

I looked for in manuals and I found nothing like this.

I thought about
DBCross1.OnPrintCell event. There I can use
if DBCross1.IsGrandTotalRow(RowIndex) then
and do something like value := value+#13+MyAvgData
but I can not change printed data.

Can anyone give me a tip how to do it?

thx
M.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:15AM
    you can't
    to have 2 rows you must have a 2 row matrix, which requires 2 fields in the row quadrant of the cross matrix editor
  • edited 10:15AM
    I used compiled demo of FR 4 (see JPG) as it has demo database which helped me to test my idea.
    Look first at PDF then at source fr3.

    I use OnCalcHeight, OnPrintCell and IsGrandTotalRow.

    PS.
    Thank you for inspiration [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Mick[/img]

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.