Page 1 of 1

HierarchicalBand

Posted: Tue Jun 05, 2007 9:24 am
by Stéphane
Hello,

I'm trying the HierarchicalBand. It works but I have some little questions :
1) I don't understand what is the goal of the ParentValue property. The KeyDataColumn and MasterKeyDataColumn properties seem to be sufficient to work...
2) In my report, the HierarchicalBand is a master band. I have a simple DataBand as child band (I set the HierarchicalBand as MasterComponent). It works but I would like that the databand be shifted as the HierarchicalBand. Is it possible ?


Thanks in advance.

HierarchicalBand

Posted: Tue Jun 05, 2007 10:44 am
by Vital
1) I don't understand what is the goal of the ParentValue property. The KeyDataColumn and MasterKeyDataColumn properties seem to be sufficient to work...
Report engine use value from ParentValue property to identify parent level of tree. If parent value in KeyDataColumn equal to null or string.empty you don't need use it.
2) In my report, the HierarchicalBand is a master band. I have a simple DataBand as child band (I set the HierarchicalBand as MasterComponent). It works but I would like that the databand be shifted as the HierarchicalBand. Is it possible ?
Place into databand container. Place all components from databand to container. In BeforePrintEvent of this container place following code:

Code: Select all

Container1.Left = HierarchicalBand1.DataSource.GetLevel() * Unit.ConvertFromHInches(HierarchicalBand1.Indent);
Thank you.

HierarchicalBand

Posted: Tue Jun 05, 2007 11:17 am
by Stéphane
Excellent !

Thanks for the quick answer.