Group's sum in group's header

edited 3:52PM in FastReport 3.0
I have double pass property set on and in the group footer OnBeforePrint I am adding the group some to an array of variables using the Set function:

Set(<SalePrice."FirmRef">,<SUM(<SalePrice."Volume">,MasterData1)>);

When I change it to store the sum as stringified value:

Set(<SalePrice."FirmRef">,
FloatToStr(<SUM(<SalePrice."Volume">,MasterData1)>));

then I am getting an error message : "invalid variant type conversion"


Please, what am I doing wrong ?

Boro

Comments

  • edited 3:52PM
    I have moved the conversion FloatToStr() from GroupFooter band's
    OnBeforePrint event into GroupHeader band event and it helped.
    Maybe the FloatToStr() function cannot be called from GroupFooter event ?
    I saw something similar in the user manual. Is it true ?

    Boro

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.