Condition for Horizontal alignment affects regular rows

Stimulsoft Reports.NET discussion
Post Reply
IskandarAir
Posts: 105
Joined: Thu Aug 17, 2017 12:07 pm

Condition for Horizontal alignment affects regular rows

Post by IskandarAir »

Dear Stimulsoft team,

We are now giving the option to user to set condition and font-change for each column (i.e. when salary is less 125, highlight it). We found that when user wants different alignment for condition/style, it affect regular row.
For Example, all rows less than 125 must be on right, and rest left. But within condition value or without, condition affect all rows.

Sample is attached, please review


P.S. Please change the connection string to your machine one
P.P.S. Please ignore the 3rd text field. I took from previous sample .mrt file

Regards,
Iskandar A
Attachments
HorizontalAlignment.mrt
Regular rows, must be in left, under condition on right.
(9.58 KiB) Downloaded 139 times
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Condition for Horizontal alignment affects regular rows

Post by Lech Kulikowski »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
IskandarAir
Posts: 105
Joined: Thu Aug 17, 2017 12:07 pm

Re: Condition for Horizontal alignment affects regular rows

Post by IskandarAir »

Hi,

Given: REGULAR (Salary Alignment - RIGHT)
--------------------------
James___________||___________105
Smith ___________||___________ 90
--------------------------

User wants to change alignment of employee whose salary is more than 100. So he gives StiCondition WITH alignment LEFT. Condition => (Data.Salary > 100, Style = StiTextHorAlignment.Left)
EXPECTED:
--------------------------
James ___________|| 105 _________
Smith ___________||___________90
--------------------------
REALITY: - Both regular and UNDER-Condition rows are changed, whereas only 105 should be LEFT-Alignment
--------------------------
James___________|| 105 ___________
Smith ___________|| 90____________
--------------------------

QUESTION. Why alignment under condition effects regular rows? PLEASE note if condition in one row is true then all proceeding rows will have the same HorAlignment

Regards,
Iskandar A
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Condition for Horizontal alignment affects regular rows

Post by Lech Kulikowski »

Hello,

Ok. What is wrong with your report?

Thank you.
Attachments
Annotation 2019-08-27 234924.jpg
Annotation 2019-08-27 234924.jpg (22.21 KiB) Viewed 1960 times
IskandarAir
Posts: 105
Joined: Thu Aug 17, 2017 12:07 pm

Re: Condition for Horizontal alignment affects regular rows

Post by IskandarAir »

Hi,

Here is my result.

which version of stimulsoft are you using?

Mine version is - "ReportVersion": "2017.1.6.0",
Attachments
result-preview-mrt.PNG
result-preview-mrt.PNG (28.58 KiB) Viewed 1948 times
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Condition for Horizontal alignment affects regular rows

Post by Lech Kulikowski »

Hello,

Please try to check the last release version.

Thank you.
IskandarAir
Posts: 105
Joined: Thu Aug 17, 2017 12:07 pm

Re: Condition for Horizontal alignment affects regular rows

Post by IskandarAir »

Hi,

What about my version?

The upgrade will be painfull for current situation.

Regards
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Condition for Horizontal alignment affects regular rows

Post by Lech Kulikowski »

Hello,

Unfortunately, we couldn't fix that issue in the old version. Sorry.

Thank you.
Post Reply