Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7731485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:29:30+00:00 2026-06-01T06:29:30+00:00

I have a report that is returning a one data field to a tablix

  • 0

I have a report that is returning a one data field to a tablix control field. The data field contains multi-line information in the database. Example below.
In SQL Server,

“Dan Chief – Ceo – Indiana Office”

“Dan Chief – ” & vbcrlf & “Ceo” & ” – Indiana Office”

The vbcrlf’s don’t display in SQL Server but I have confirmed they are present by using instr() in SSRS.

I want the data to display like this. I can remove the hyphens and spaces.
Dan Chief

Ceo

Indiana Office

But in the SSRS report it displays all on one line. I have the autogrow check box selected/on and still nothing.

Any ideas are welcome.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:29:32+00:00Added an answer on June 1, 2026 at 6:29 am

    There are two directions to accomplish this. The method you want depends on whether or not you are formatting the text as HTML (Right click on the text in the cell, select Placeholder Properties. If Markup type is HTML, use the first approach below.)

    Sounds like you are presenting these as HTML, since the vbcrlf will be displayed if you set to None.

    Treating the text as HTML:

    You need to replace the vbcrlf with <br/> tags. This is easiest if you use embedded code in the report. Create a function in the report’s code: Report menu, Report Properties -> Code section.

    Public Function ReplaceLineBreaks(ByVal s As String) As String
       Dim strBuilder As New System.Text.StringBuilder(s)
       If s.Contains(vbCrLf) Then
          strBuilder.Replace(vbCrLf, "<br/>")
          Return strBuilder.ToString()
          Else : Return s
       End If
    End Function
    

    Now set your field to use this code:
    =Code.ReplaceLineBreaks(Fields!ColumnA.Value)

    If you aren’t treating the text as HTML

    vbCrLf should be preserved and displayed in this case, so if that’s really what you have stored in SQL, then you should be fine. If you have some other characters instead in the string, you can alter the ReplaceLineBreaks function I provided above to insert vbCrLf’s.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Particulars: I have a report that displays information about invoices. There is a
I have a chart I'm making in SSRS. My database is returning data like
Using: Oracle ApEx 3.0.1 I have a SQL report region that contains a hidden
I have a report that contains a pie chart within it. I would want
I have a number of functions that parse data from files, usually returning a
I have a report that I'm exporting to PDF using the VS2008 version of
I have a report that I created in SQL Server Reporting Services 2008. I
i have a report that i have been sending a parameter to which worked
I have a report that shows all errors (if there are any) from a
At work, we have a report that is generated with IP's in it. There

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.