May 19, 2012  
   Login  
Forum  
 
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...How to bold selected textHow to bold selected text
Previous Previous
 
Next Next
New Post
 5/18/2010 10:01 PM
 
 Modified By anonymous  on 5/18/2010 10:45:52 PM

I'm concatinating two text fields in one text box. To differentiate between the two fields, I preceed each with a literal. I also insert a carriage return/line feed between the two text fields. I would like to "bold" the two literals - without having to put the literals into seperate text boxes. Is there a way to do it within the expression?

Here is the base expression, which works fine. I want to make the "Next Action: " and "Summary Notes: " labels\literals appear as bold.

="Next Action: " & Fields!Next_x0020_Action.Value & Chr(13)& Chr(10) & "Summary Notes: " & Fields!Issue_x0020_Summary.Value

Thanks!

Bill

New Post
 5/19/2010 2:59 PM
 

Hi Bill,

By using multiple placeholders within your textbox, you will be able to achieve what you want. Here is a blog article that explain the use of placeholders.

Alternatively, in your case, you can also use simple html tags in your expression (="<b>Next Action:</b> " & Fields!Next_x0020_Action.Value & Chr(13)& Chr(10) & "<b>Summary Notes:</b> " & Fields!Issue_x0020_Summary.Value) and modify the placeholder properties (double-click your expression in the design view) and set the "Markup type" to "HTML - Interpret HTML tags as styles".

Let me know if you have any questions.

Regards,


Frederic LATOUR
ENESYS
New Post
 5/19/2010 4:20 PM
 

Thanks Frederic! As always, your reply was both quick and informative. The second approach worked fine, and I now have the bolding as I wanted it.

There is an unintended consequence that I'm hoping you can also help me with. Once I enable the interpretation of the HTML tags for the expression, the carriage return / line feed stops working: Chr(13) & Chr(10). Do I need to change these commands to an HTML equivalent?

Thanks again!

Bill

New Post
 5/19/2010 4:24 PM
 

Yes, use <br /> instead.

This should work.

Regards,


Frederic LATOUR
ENESYS
New Post
 5/19/2010 4:35 PM
 

Frederic - is the specific format: <br/>(13) & <br>(10) ?

New Post
 5/19/2010 4:50 PM
 
 Modified By anonymous  on 5/19/2010 7:22:17 PM

Frederic, I'm all set. I found that for HTML, the command is <br>, and I need to set it off with double quotes. My final working expression only shows the Next Action and Summary Notes literals if there is data in either of those fields. If there is data, then it prints the literals and bolds them. A carriage return is insterted between the two pieces of data, but only on the condition that Next Action, which comes first, actually has data in it.

=Iif(Trim(Fields!Next_x0020_Action.Value)<>"","<b>Next Action: </b>", "")& Fields!Next_x0020_Action.Value & Iif(Trim(Fields!Next_x0020_Action.Value)<>"","<br>","")& (Iif(Trim(Fields!Issue_x0020_Summary.Value)<>"", "<b>Summary Notes: </b>","")) & Fields!Issue_x0020_Summary.Value

Previous Previous
 
Next Next
ForumForumEnesys RS Data ...Enesys RS Data ...Support - RS Da...Support - RS Da...How to bold selected textHow to bold selected text

 
You need to login for posting to the forums.
If you don't have a login, click here to register.
 
Copyright 2010 Enesys - All rights reserved Terms Of UsePrivacy Statement