Notifications
Announcements
No record found.
Hi,
How can I change this to say, if there is greater then 9 letters, reduce the font size by 2, and again if theirs greater then 18 letters, reduce it by so many.
Thanks
*This post is locked for comments
I dont think it is possible
Is there any way of saying Every time there's a '/' reduce the font size?
May be you can look at Font size expression
Or
You can create two text box and make it visible based on condition
We usually dont do it, but you can try the following links.
stackoverflow.com/.../how-to-auto-reduce-font-size-if-it-is-too-long-over-fixed-textbox-in-rdlc-report
social.msdn.microsoft.com/.../change-font-size-dynamically
Thank you that's very useful!
This top line does work ..
=iif(len(Fields!ProdOrderNo.Value)<9, "24pt", "16pt")
How can I adjust this if it's possible to include..
=iif(len(Fields!ProdOrderNo.Value)<18, "24pt", "8pt") but include it in one line as currently it doesn't pick up the second line.
=switch( iif(len(Fields!ProdOrderNo.Value)<9, "24pt", "16pt"), iif(len(Fields!ProdOrderNo.Value)<18, "24pt", "8pt") )
Try this. By the way, do test, because I did not test it.
Thanks again, unfortunately it doesn't appear to have worked.
Hi
You can try below
=iif(len(Fields!ProdOrderNo.Value)<9, "24pt", iif(len(Fields!ProdOrderNo.Value)<18, "16pt", "8pt"))
There isn't a CHOOSE function available?
iif (length(field) < 18, choose(length(field),24,24,24,24,24,24,24,24,24,20,22,20,18,16,14,12,10,8,6),6) or whatever the format is...
would give finer control.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.