Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How do i change the grouporder of a report at runtime?

edited October 2004 in General
Hi,

How do i change the grouporder of a report at runtime?
TppCustomReport.Groups[Index: Integer] property is Run-time and read only.

Thx,
Filip Moons

Example:
Grouporder at designtime:
Group[0]:MyReport.MyGrp1
Group[1]:MyReport.MyGrp2
Group[2]:MyReport.MyGrp3
Group[3]:MyReport.MyGrp4

Grouporder at runtime (MyGrp3 <> MyGrp2):
Group[0]:MyReport.MyGrp1
Group[1]:MyReport.MyGrp3
Group[2]:MyReport.MyGrp2
Group[3]:MyReport.MyGrp4

Comments

  • edited October 2004
    Hi Filip,

    You can use the TppReport.MoveGroup method to change the position of a group
    at runtime. There are also other group methods available such as FindGroup
    and AddGroup that may be helpful. See the RB help for TppCustomReport for
    more information.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.