Invisible value of GroupHeaderBand condition

Stimulsoft Reports.NET discussion
Post Reply
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Invisible value of GroupHeaderBand condition

Post by LukasT »

Hello,
I would like to create my agregated static function... But value of GroupHeaderBand condition is empty... Please, why?
Example:

Code: Select all

public static string GetGroupCondition(StiGroupHeaderBand group) {
     return group.Condition.Value;
}
Thank you....
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Invisible value of GroupHeaderBand condition

Post by Jan »

Hello,

If you want get current GroupHeaderBand condition value you need use following code:

Code: Select all

object value = timulsoft.Report.Engine.StiGroupHeaderBandV2Builder.GetCurrentConditionValue(band);
Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Invisible value of GroupHeaderBand condition

Post by LukasT »

Hello Jan,
thank you for response... and where is possible to get condition expression of this groupHeader?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Invisible value of GroupHeaderBand condition

Post by Jan »

Hello,

During report rendering process you can get only result of condition calculation. You can't get original expression because report engine converts each expression to c# or vb.net code during report compilation process.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Invisible value of GroupHeaderBand condition

Post by LukasT »

Ou yes... you are right ;-) It has sense... Thank you!
Post Reply