ssrs 2008 r2 concateante values into one cell

  • In an sql server 2008 r2 report, I have one textbox that I need to concantenate values together. I then need to concatenate the values together to display in one cell that looks like the following:

    1. Company number

    2. 5 spaces

    3. company number that is varchar(5)

    4. 5 spaces

    5. company name

    6. 5 spaces

    7. company number that is varchar(30).

    Thus can can you show me how to display the values in the order the customer wants to see them in the one cell?

  • Look at string concatenation in SSRS: http://www.katieandemil.com/ssrs-concatenate-two-string-fields-using-expression#article

    Keep in mind, the you can concatenate the vbCRLF built in constant to get a carriage return/line feed.

    HTH,

    Rob

  • if you are working with ssrs2008 or greater you can do this:

    1) Create a Paceholder for you textbox

    2) In Paceholder poperties enable "HTML - Interpret HTML tags as style"

    3) In "Value" set ="<ul><li>Fields!Field1.Value</li><li>Fields!Field2.Value</li>....<li>Fields!FieldN.Value</li></ul>"

    That's all

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply