Results 1 to 4 of 4

Thread: Programatically program font size based on length of data

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2016
    Posts
    155

    Programatically program font size based on length of data

    Is there a way to tell an rdlc what font size to use based on the length of the data in the expression?

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Apr 2016
    Posts
    155

    Re: Programatically program font size based on length of data

    I Think I found it

  3. #3
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,532

    Re: Programatically program font size based on length of data

    When did this become StackOverflow?
    Help out the next person... take a penny, leave a penny.

    If you found the solution, it's usually good form to post what the solution is. That way others can look at it and maybe suggest improvements, or 6 months from now, or a year from now, someone else looking for the same thing, they can find it.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2016
    Posts
    155

    Re: Programatically program font size based on length of data

    Good point. When in the properties of the text box, click on Fonts then on size, or font, or bold, color, effects, line spacing, italic, there is a box with and fx next to it. That is where you put the code. in my case I used =IIF(len(Trim(Fields!column1.Value) > 20, "3pt", "4pt")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width