Solved

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

Posted on 2004-08-30
4
1,595 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
  • 2
4 Comments
 
LVL 42

Accepted Solution

by:
frodoman earned 75 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for the points.  For the record, bdreed's suggestion is also correct.

frodoman
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now