Getting Started with ASP.NET MVC - Part 6: ASP.NET MVC and Entity Framework
First Time? You can support us by signing up. It takes only 5 seconds. Click here to sign up. If you already have an account, click here to login.


Upload Image Close it
Select File

Learned something today? Share it, or learn from what others have learned today

SSRS - Newlines in Text Box

Feb 23 2012 12:00AM by Alpesh Gorasia   

Sometimes we need to print informations like...

Name
Address1,
Address2,
City ... etc.. in this format.

In SSRS, Put one Text Box and set expression. In expression use VBCRLF OR Chr(10) for new line create.

e..g: "Alpesh Gorasia" & VBCRLF & "Ahmedabad" ....etc..

Read More..  [5005 clicks]


Alpesh Gorasia
194 · 1% · 182
5
 
3
 
 
0
Incorrect
 
0
Interesting
 
0
Forgotten
 
0
Move



Submit

4  Comments  

  • While the VbCrLf makes sense, I would not use just the Chr(10) but chr(13) + chr(10) CR and Lf

    commented on Feb 23 2012 11:11AM  .  Report Abuse This post is not formatted correctly
    mbova407
    346 · 0% · 78
  • vbCrLf is Chr(10) + Chr(13). I prefer the vbCrLf because it is a system constant and doesn't call any functions like "CHR()". Chr(10) is the End-Of-Line for UNIX platforms, it is also vbLf.

    commented on Feb 23 2012 11:35AM  .  Report Abuse This post is not formatted correctly
    Dave Vroman
    223 · 1% · 146
  • You don't know the format that the user is going to request their data in: They could set the output format to be CSV, Excel, PDF or HTML. Whatever you choose needs to work in all four.

    Since CSV uses a CRLF ( vbCrLf or Chr(13) + Chr(10) ) as a row seperator, using it within a report is a BAD IDEA. Excel may also have problems with it.

    It would be better to have a number of stacked controls

    commented on Feb 24 2012 3:34PM  .  Report Abuse This post is not formatted correctly
    Marc Jellinek
    119 · 2% · 359
  • Thank you all,

    I agree with marc_jellinek that output format in CSV, Excel display bad. Basically such type of requirement use in any document type report like..Statement,Invoice,Letter etc... so generally this type of report set the output format to be PDF or WORD.

    commented on Feb 25 2012 3:05AM  .  Report Abuse This post is not formatted correctly
    Alpesh Gorasia
    194 · 1% · 182

Your Comment


Sign Up or Login to post a comment.

"SSRS - Newlines in Text Box" rated 5 out of 5 by 5 readers
SSRS - Newlines in Text Box , 5.0 out of 5 based on 5 ratings
    Copyright © Beyondrelational.com Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising