View Full Version : Embolden some parts of string


davedynamic
10-28-2001, 12:40 PM
Previous posts have suggested this can not be done, however, I have had some morre thought about it.

The desired outcome is

strA= "Banana"

strZ="Please add 16 " & strA

The objective is to get strA to appear as Bold. Various attempts using FontBold property have amounted to nothing.

I wondered about using Word in some fashion to enable this facility. ANyone got any thoughts?

Pat Hartman
10-28-2001, 09:49 PM
This is not possible with a standard Access control. There are third party controls which do have this capability. I believe that FMS sells one. Check out their website - www.fmsinc.com (http://www.fmsinc.com)

Alexandre
10-29-2001, 01:27 AM
You will find a solution at Stephen Lebans' great site:
http://www.lebans.com/mixbold-plain.htm

Alex

davedynamic
10-29-2001, 12:38 PM
Thanks for the prompt replies. Lebans site shows a control being emboldened not a string.

What I had some vague thoughts about was passing a value to Word. Processsing the string in word, then placing the word string as an OLE on the report or what have you. Any thoughts?

Rich
10-29-2001, 01:54 PM
Is it worth the trouble, why not just print it from Word?

Alexandre
10-29-2001, 02:17 PM
I cannot clearly see what is the difference that you make. If you want to make some part of a string bold, it is because you intend to display that string sooner or later. For this, you will use a control on a form or report.
Where am I wrong?

Alex

[This message has been edited by Alexandre (edited 10-29-2001).]

davedynamic
10-30-2001, 12:16 PM
Although you do use a control on the form, if you don't want all the string to be bold, but just some of it, the bolding of a control does not help.

pcs
10-30-2001, 03:58 PM
as alex suggested, you need to use a control.

put strA and srtZ into 2 controls on your form, with the control for srtA in bold.

by placing them carefully (right justify,left justify) you can give the appearance of one contiguous field...

al

Alexandre
10-31-2001, 01:52 AM
Right, pcs' solution is the most simple and usual. If for any reason you would like to use one only control Stephan Leban s solution should do for you. It does not bold a whole control (there would be no need of elaborate code for that!) but, as you seem to want, part of the text in a control.

Alex

davedynamic
10-31-2001, 01:55 AM
Thanks for the help guys. However, due to the complexity of messages and the numbers, it appears the simplest solution is to either process in Word, or to use FMS controls.

Rich
10-31-2001, 05:10 AM
You could also purchase ODE which has a RichText format control shipped with it.

davedynamic
10-31-2001, 01:48 PM
Rich ODE?

Jack Cowley
10-31-2001, 06:29 PM
ODE = Office Developers Edition