Bold and Underline Certain Text in an E-Mail

Wayne

Crazy Canuck
Local time
Today, 02:06
Joined
Nov 4, 2012
Messages
176
Can anyone shed some light on this? I have created an automated e-mail quote for a client database. I have created several strings that make up the body text for the e-mail (some with info drawn from the database fields). Is it possible to have certain strings underlined and bold face? How would I go about that?
 
Look into acFormatHTML which will allow you much more latitude with your content formatting. Keep in mind that if you want to only format certain words within certain field data (rather than format, say, [TotalAmountDue] in red bold), you're still going to be doing some significant string manipulation.
 
Tanks David. I'll play with it over the weekend and see what I can do. I anticipated this, and the body text is already broken up into several strings. I figured I would have to (at the very least) separate them strings I wanted to underline and bold the text. I appreciate the quick answer.

Cheers
 
Sorry - that should be thanks. There's a lot to be said for proof-reading before sending.
 
No worries - post back if it gives you trouble (the code, not the typing).
 
Check out an alternative solution. Prepare and format a text in a rich text format control. In the text include placeholders for variable data. The content of the placeholders can be replaced using the Replace function. I seem to remember that formatting is preserved.
 

Users who are viewing this thread

Back
Top Bottom