Suggestion: Band Styles

Stimulsoft Reports.NET discussion
Post Reply
mace242
Posts: 43
Joined: Tue Aug 21, 2007 9:24 am

Suggestion: Band Styles

Post by mace242 »

Would it be possible to add a property to text controls so that they can use the style of the container (band, etc) that they are placed on. This would allow the font colour of all text controls on a band to be changed by setting a condition on the band itself.

Unless this is currently possible and I'm just missing how to do it.

Thanks

Tim.
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Suggestion: Band Styles

Post by Brendan »

Hi Tim,

Something like this already exists for what you describe. The style doesn't inherit from it's parent container but you can provide global styles for report components

If you select the properties for the report (clicking in the grey area outside of page usually does this) you'll see a Styles property in the property grid.

You can define whatever styles you want here.

Then for your text components you can specify their style by selecting them and setting the "Component Style" property. You can assign them to any of the styles you defined in your report.

If you ever need to change the look of the text components all you need to do is redefine their style and it will process them all automatically if they are linked to that style.


Edit: You can also quickly define style by selecting the components and hitting the "Edit Style" in the combo dropdown for Component Style too
mace242
Posts: 43
Joined: Tue Aug 21, 2007 9:24 am

Suggestion: Band Styles

Post by mace242 »

I get that - design time styles, what I mean is runtime style inheritance, for want of a better term.

What I mean is say you have 3 texts on a band and you want to alter the colour of the text depending on a condition. Currently you would have to apply that condition to each of the three texts, meaning you have 3 conditions. What I would think would be great is if you could just set one condition for the band and have the three texts automatically use the settings that have been made on the band. To clarify this would be used where the formatting of a band is changed as a result of a condition at runtime, not design time.

Something like "AutomaticallyUseContainerFormatting" as a property on a text control.

It would make things much easier if you want a whole load of texts to change with conditions.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Suggestion: Band Styles

Post by Vital »

Hello,

New property UseParentStyles added to all components. Please check build from 25 April.

Thank you.
mace242
Posts: 43
Joined: Tue Aug 21, 2007 9:24 am

Suggestion: Band Styles

Post by mace242 »

Excellent. Thanks loads.

Again the team at Stimulsoft are on top form with their support! Well done.

Tim
Post Reply