ASP.NET C# RDLC IFF condition gives error -


I need to print notes in the rdlc report. I due to the long notes to reduce the size of the notes I have a substring function It was written that it works perfectly for notes with more than 30 lengths. But this error shows for notes with a length of less than 30. So I decided to give the status of IFF for the rdlc report field But again this error shows (for notes in length less than 30). Please suggest that there is something wrong with this IFF situation, otherwise please suggest some alternative solutions for this problem. Here's my code.

  = IIF (field! Notes.toString (.) Length ()> 30, (Field! Notes. Value.ToString (.). Substring (0,30)), Fields!   

Why not:

  = iif (lane (fields! Notes value)> 30, left (Fields Notes Value, 30) Fields Notes .Value)  

And if you are not sure if the datatype notes of the field are a string, then just change the 'Fields! Notes.Value' Take CSR (Field! Notes Value) everywhere


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -