Conditional Formatting and Use of Styles

Stimulsoft Reports.NET discussion
Post Reply
sko
Posts: 5
Joined: Thu Oct 28, 2010 2:31 am
Location: Germany

Conditional Formatting and Use of Styles

Post by sko »

Hi,

is there a way to use in Repoert Generator two styles for conditional formatting, e.g. like

standard format of a cell: Style1
if (condition): Style2 ?

If I apply conditional formatting and select the style the Report Generator uses the contents of the style.
Therefore, if I change the style later I have to reformat all the cells in the report.

There is the option to use a function instead of selecting a style - unfortunately I have no idea how to use it.

Any hints?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Conditional Formatting and Use of Styles

Post by Alex K. »

Hello,

If we understood your question correctly, you can use Style in conditions.
Please see the sample report in attachment.

Thank you.
Attachments
667.Report sample.mrt
(4.58 KiB) Downloaded 344 times
sko
Posts: 5
Joined: Thu Oct 28, 2010 2:31 am
Location: Germany

Conditional Formatting and Use of Styles

Post by sko »

Hello,

the sample report shows conditional formatting as i use it currently - this is ok.

However, I store styles in external .sty-file for reuse in several reports.
Now, if I change the style in the .sty-file and reload styles to the report, the formatting used in the conditions is not changed.
I guess this is because the information about the style used is gone in the condition.

Is there a way use the new style definition instead of the old in the condition without manually changing each cell?


Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Conditional Formatting and Use of Styles

Post by Andrew »

Hello,

We plan to add this functionality in the next prerelease build.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Conditional Formatting and Use of Styles

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Could you explain your issue in more details? How do you load the report and styles.
Which version of Stimulsoft Reports do you use?

Thank you.
sko
Posts: 5
Joined: Thu Oct 28, 2010 2:31 am
Location: Germany

Conditional Formatting and Use of Styles

Post by sko »

Thank you - I am looking forward to the next release then.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Conditional Formatting and Use of Styles

Post by Andrew »

Ok! Let us know about the result.

Thank you.
Post Reply