Click here to Skip to main content
15,878,970 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everyone,

I Have a RDLC Report which basically is a Medical Laboratory report.

In this report i have three columns Investigation Name, Observed Values, and Reference Ranges.

If my Observed value is beyond the boundaries of reference ranges the font for observed values should change.

I am able to change the font statically but i want it to be dynamic.

Please find the Rdlc Table and code for more reference.

Thanks for helping.

| TEST | OBSERVED VALUE | REFERENCE RANGES |
Blood Test | 20 | 30 - 40


In observed value column i have written the below expression in fonts.

=Iif(Fields!ObservedValues.Value >= 30, "Normal", Iif(Fields!ObservedValues.Value <= 40, "Normal", "Bold"))

So in the above expression reference value is fixed to greater than 30 and less than 40.

This i want to come from my Reference Ranges column.

Thanks
Posted
Updated 21-Jun-15 20:09pm
v3

1 solution

Split 'Reference Ranges' into two - low and hi value, and you will be able to reference it as Fields!LoRef and Fields!HiRef...
VB
Iif(Fields!ObservedValues.Value >= Fields!LoRef, "Normal", Iif(Fields!ObservedValues.Value <= Fields!HiRef, "Normal", "Bold"))
 
Share this answer
 
Comments
Itz_ashish_Singh 22-Jun-15 2:44am    
Hi Peter,

Thanks for posting the answer but i am new to RDLC.How do i split the string in reference ranges .

Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900