This is a known bug/limitation of the control. Further it does not
support autosizing. For a workaround see:
http://www.lebans.com/richtext.htm
Here's the next release, Version 2.0. I'll leave it in Beta until I hear
from people that everything is working properly. Lots of new
properties!. (Coming soon!)
I need your Help! In an effort to finally build a proper Help file I am
looking for code samples using the props and methods of the RTF2
control. I am also looking for a more finished Access RTF2 TooolBar then
the one I included in the original sample RTF2 MDB's. Please Email your
suggestions and I will add them to the Help file I have started
compiling.
Production Release RTF2 1.8 May 23, 2004 RichText ActiveX
Version 1.8
Fixed Default Font and BackColor props. Added Selxx props for Bold,
Italic, UnderLine, FontName, and FontSize. Added Plaintext property.
Fixed Backspace bug from version 1.7
Here is the full installation package of the RTF2 Active control,
version 1.8: RichTextActiveXonlyVersion1.8.zip
RTF2 control is an ActiveX RTF solution written in VC++. The RTF2
control is a complete editing/printing solution for Access 97 or higher.
Autosizing of the RTF2 control is supported for A2K or higher. This is a
full automatic install package. This install package contains 3 required
files for the control to function. The OCX itself, RTF2.OCX and the 2 VC
runtime files, Mfc42.Dll and Msvcrt.Dll. AFAIK the two VC runtime files
will already exist on all installs of Windows.
Bug Fix for A2K and A97 sample MDB's. There was some corruption in the
sample Form itself. I have imported everything into a fresh MDB and the
Form's corruption seems to be fixed. Please let me know if you see any
more problems with the A2K or A97 Sample MDB's.
Here are some sample MDB's to demonstrate the control's functionality.
A2KRTF2Sample.zip and A97RTF2Sample.zip You must install the RTF2
ActiveX control before opening either of these sample MDB's. If you have
ActiveX registration problems and you end up reinserting the RTF2
ActiveX control onto the sample Forms/Reports make sure you rename the
control to "RTFControl" in order for the sample autosizing code to work
properly. Both sample MDB's contain a ToolBar named RTF2. Remember to
import this ToolBar into any MDB containing the RTF2 ActiveX control.
Please note that the Toolbars are no longer needed for RTF2 Versions
1.4 and higher as they have a built in context/editing Menu.
Here is a sample MDB from Andre Minhorst from Germany. It demonstrates
how to break up an RTF document into separate paragraphs. AndreRTF.zip
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.