hi Abdul,
to reiterate Abhilash's question, does the client have either boe or cr server? if so, i may have something for you in a couple of days as i'm just working on a sample report that does this...i.e. opens and closes sections based on a grouping.
it will only work in those two environments using the dhtml viewer. the webelements library will not be needed in this case.
-jamie