Solved

Reporting Services - Custom code to change font size

Posted on 2011-09-13
4
1,689 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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