Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


ssrs 2008 r2 concateante values into one cell


ssrs 2008 r2 concateante values into one cell

Author
Message
wendy elizabeth
wendy elizabeth
Mr or Mrs. 500
Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)

Group: General Forum Members
Points: 587 Visits: 721
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?
robert.gerald.taylor
robert.gerald.taylor
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1332 Visits: 1399
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
ndiro
ndiro
SSC Rookie
SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)SSC Rookie (46 reputation)

Group: General Forum Members
Points: 46 Visits: 216
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search