Hi,
I need to display a horizontal line on certain condition. I added a condition but after rendering my report did not changed!
I created an sample report. In this report there is Horizontal Line 'HLine'. The component's color is transparent. The component should change its color to black when the condition defined in 'Conditions' is met but it won't work. Color should be changed when displayed value of column 'KeimSpalte' from DataSource1 starts with 'A'. The DataSource1 is a csv datasource(you have to set csv-datasource location before rendering report).
Can you please help me?
HorizontalLine Conditional Formatting
HorizontalLine Conditional Formatting
- Attachments
-
- csv_datasource.csv
- CSV datasource
- (204 Bytes) Downloaded 173 times
-
- HighlightCondition_Modified.mrt
- Report
- (21.11 KiB) Downloaded 316 times
Re: HorizontalLine Conditional Formatting
Hello,
Please add the following line of code to the BeforePrint event of the DataBand2 component:
Thank you.
Please add the following line of code to the BeforePrint event of the DataBand2 component:
Code: Select all
HLine.Color = (DataSource1.KeimSpalte.StartsWith("A")) ? Color.Black : Color.Transparent;
Re: HorizontalLine Conditional Formatting
Thank you!
This solved my issue!
This solved my issue!
Re: HorizontalLine Conditional Formatting
Great!
Thank you.
Thank you.