Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Format Text in Crystal Report

Posted on 2007-11-14
12
Medium Priority
?
242 Views
Last Modified: 2013-11-26
I have a crystal report file that goes together with Visual Studio .NET
In the Crystal report, there is only one field and the field is come from the database, the data in the field looks like this

Project Description: aaaaaaaaa
POC: bbbbbbbbbbb
Notes: ccccccccc

What I need is the text 'Project Description', 'POC', 'Notes' to be bold. how do I do that?

Thanks for help
0
Comment
Question by:CochiseCounty
  • 7
  • 5
12 Comments
 
LVL 48

Expert Comment

by:jpaulino
ID: 20282133
You can add the labels and set the font as you want. Then drag from the database fiels the field into the label an format the field as you wish.

You will have something like this:

Project Description: {aaaaaaaaa}
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 20282144
Opps! This is in VS2005 i don't know if work in VS2003.

If you cannot drag just try to right it.
0
 

Author Comment

by:CochiseCounty
ID: 20282615
Is there anyway to do something like search for the text Project Description and bold it?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 48

Expert Comment

by:jpaulino
ID: 20282714
>> Is there anyway to do something like search for the text Project Description and bold it?

Did you check if the solution that I have post it works in 2003. If so you can select the Project Description and bolt it without bolting the field.

Another solution is to add one label and one field
0
 

Author Comment

by:CochiseCounty
ID: 20282794
Hi jpaulino,
I think I didn't explain clearly enough,
In the details section of the Crystal report, there is only 1 fileld, and the field come from the database, so there is no way for me to highlight the text Project Description or POC or Notes to bold them.
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 1000 total points
ID: 20282866
Ok, not I understand. You can create a new formula field and split the string

split({table.field},",")[0]   'This will retrieve the Project Description
split({table.field},",")[1]   'This will retrieve the value like aaaaaaaaa

Add the two formula fields to your detail section and format the first one as bold.

This work fine, at least in VS2005
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 20283616
Correction:

Read:
Ok, now I understand

Instead of:
Ok, not I understand
0
 

Author Comment

by:CochiseCounty
ID: 20284014
OK, let me ask you something, in my SQL statement, if I have something like
SELECT <b>Project Description</b>: aaaaaaaaa
<i>POC</i>: bbbbbbbbbbb
<b>Notes</b>: ccccccccc as Data

When I display this Data field in Crystal Report, it still show the html code, eventhough I change the text interpreter to html. Why?
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 20284190
Because is not valid!

Have you tried the solution that I have post it.
0
 

Author Comment

by:CochiseCounty
ID: 20284263
OK, where do I put this
split({table.field},",")[0]   'This will retrieve the Project Description
split({table.field},",")[1]   'This will retrieve the value like aaaaaaaaa

I am new with CR, please help in details. Thanks a lot
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 20284307
You have with the report openned a Database Field toolbar. Add a new formula field for each one.
0
 

Author Comment

by:CochiseCounty
ID: 20292345
Hi jpaulino,
Thanks for your help, I found another solution for my problem, anyway, I learned i thing new from you about the formula field. Thanks a lot
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

885 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