Solved

Reporting Services - Custom code to change font size

Posted on 2011-09-13
4
1,640 Views
Last Modified: 2012-05-12
Does anyone know how I can change font size base on length of text file in textbox?  I have a need to shrink text file to fit a textbox.  I know that the textbox can be set to grow or shrink.  However, I need the textbox to stay static and not change, but the text can shrink.  

I know this can be done easily in Excel, but can't seem to get it working with Reporting Services 2005.  Any ideas or examples if anyone have any?
0
Comment
Question by:holemania
  • 2
4 Comments
 
LVL 21

Accepted Solution

by:
JestersGrind earned 250 total points
ID: 36529855
You should be able to do it by using an expression for your font size, something like:

=IIF( LEN(Fields!FieldName.Value) > SomeValue, "8pt", "10pt" )

Greg

0
 
LVL 21

Assisted Solution

by:Alpesh Patel
Alpesh Patel earned 250 total points
ID: 36541085
0
 

Author Comment

by:holemania
ID: 36589632
Thank you for the assistance.  We decided to leave reporting services as a reporting tool and not so much as what we can do in excel.  Since users are able to export it, they can do the few minor tweaks.
0
 

Author Closing Comment

by:holemania
ID: 36589640
Decided not to go this route any more.  Report is modify to print in one page, and user can change formatting when export to excel.
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After much searching across the internet I have found that you could not set the name of the file you were attaching to dynamic report subscriptons in Microsoft Reporting Services. I did manage to find one article showing you how your could make a s…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question