Seems adding a group was not the rigth solution to my needs, but im really thankfull Nico.
Do you know how to change the field assigned to a group on runtime?
Im trying to allow end user the data order for a report, but this means the report grouping needs to change too, so i thinking to define all the groups i need (4) and try to assign the proper field to them on runtime.
Seems adding a group was not the correct solution to my problem, i want to allow my users to select data order in a report, but of course; groups needs to change accordingly to that. Is there a way to change field assigned to a group before i print my report?
You can access existing groups in code using the Report.Groups property. From there you can adjust the field used for a specific group using the FieldName property. Something like the following...
Comments
Take a look at the following article on creating groups in code.
http://www.digital-metaphors.com/rbWiki/Delphi_Code/Layouts/Create_Group_in_Code
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
thankfull Nico.
Do you know how to change the field assigned to a group on runtime?
Im trying to allow end user the data order for a report, but this means the
report grouping needs to change too, so i thinking to define all the groups
i need (4) and try to assign the proper field to them on runtime.
Any ideas?
allow my users to select data order in a report, but of course; groups needs
to change accordingly to that. Is there a way to change field assigned to a
group before i print my report?
thanks for your patience and help Nico.
You can access existing groups in code using the Report.Groups property.
From there you can adjust the field used for a specific group using
the FieldName property. Something like the following...
ppReport1.Groups[0].FieldName := 'MyField';
ppReport1.Print;
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com