Solved

how to read <br> and display a new line in crystal report labels

Posted on 2004-08-30
4
2,394 Views
Last Modified: 2008-03-04
hi guys,

i have here a crystal report label (actually its a formula field).
this formula field can display long strings.
the strings are located in a notepad.

so when the text file consists of this line:
     blah blah blah blah blah <br> blah blah
     blah blah <br> blah blah blah blah

it prints the whole string including the <br> signs.

i want the <br> to act as a new line or a carriage return and i want the crystal report label to look like this:
     blah blah blah blah blah
     blah blah blah blah
     blah blah blah blah

please help....

thanks
0
Comment
Question by:batang_igat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 42

Accepted Solution

by:
frodoman earned 75 total points
ID: 11930023
You need to use a formula instead:

replace({inputtext},'<br>',chr(10)+chr(13))

This will display the same text but will replace all <br> instances with the c/r line/feed characters.

HTH

frodoman
0
 
LVL 28

Expert Comment

by:bdreed35
ID: 11930252
You can actually do this without creating another formula.

Right click the field on the report, and choose Format Field.
Under the Paragraph tab, look for the drop down list at the bottom called Text Interpretation.
In the dropdown list, choose "HTML Text".
This will allow you to use certain valid HTML tags to format your text.
0
 

Author Comment

by:batang_igat
ID: 11938568
thank you both for your quick responses.

i really appreciate your help.
i used the frodoman's formula for my codes but i think bdreed35's suggestion is also correct.

thanks
0
 
LVL 42

Expert Comment

by:frodoman
ID: 11941339
Thanks for the points.  For the record, bdreed's suggestion is also correct.

frodoman
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question