[AccessD] Highlighting Select Words in a Large Text Field

Salakhetdinov Shamil mcp2004 at mail.ru
Mon Oct 1 10:21:28 CDT 2012


Hi Brad --

Sorry, I missed that you have to preview/print report - then you can assign your HTML text to .ControlSource property of an unbound TextBox with .TextFormat property equal to "Rich Text". (Of course you can also use textboxes bound to field(s) of a (temp) table keeping your generated HTML). 

Try

="<html><body><p>Hello, <font size=""5"" color=""FF0000"">W<font>orld !</p></body></html>"

Thank you.

-- Shamil


Mon, 01 Oct 2012 00:11:37 +0400 от Salakhetdinov Shamil <mcp2004 at mail.ru>:
>	
>
>
	
	
>
		
		
			
>Brad,
>
>
Set "Rich Text" TextBox's .Value property equal to your HTML text and see how that will impress your relatives :)
>
>
Thank you.
>
>
-- Shamil
>
>
>
Sun, 30 Sep 2012 14:35:58 -0500 от "Brad Marks" <BradM at blackforestltd.com>:
>
>	
>
>
>
>
>
	
>
	
>
>
>
		
>
		
>
			
>
>Shamil,
>
>
>
>
>
Because the field is coming from a database in a purchased package, I cannot control how the data is stored.
>
>
>
>
>
If I used a TextBox control with the property set to "Rich Text", I am not sure how I could change the text to highlight the selected word(s).  Maybe there is a way to do this, but I could not find an example.
>
>
>
>
>
Thanks,
>
>
>
Brad 
>
>
>
>
>
-----Original Message-----
>
>
>
From: accessd-bounces at databaseadvisors.com on behalf of Salakhetdinov Shamil
>
>
>
Sent: Sun 9/30/2012 2:28 PM
>
>
>
To: Access Developers discussion and problem solving
>
>
>
Subject: Re: [AccessD] Highlighting Select Words in a Large Text Field
>
>
>
 
>
>
>
Hi Brad --
>
>
>
>
>
Why not use (unbound) TextBox control with its Text Format property set to "Rich Text"?
>
>
>
>
>
Thank you.
>
>
>
>
>
-- Shamil
>
>
> <<< skipped >>>


More information about the AccessD mailing list