About Stephen Lebans 'RTF control' ControlSource.

T

ThomasAJ

The ActiveX control uses the RTFField control as its source.
The RTFField control is bound to a field in a table.
All OK.

But I need to programatically load the value into the RTFField. When I do
that (and the value is from the sample file proved by the Lebans RTF mdb so I
know it's 100% correct) the ActiveX control completely ignores what is in
there.
 
T

ThomasAJ

After more playing it seems that it will not work unless the RTFField control
is bound to a field in a table.

This makes its use very limited, but I guess there are workarounds.
 
S

Stephen Lebans

That is a false statement.

The control does not have to be bound to a field. But I will say that Access
sometimes has trouble when it calculates Page breaks for an Unbound control.
Also, I have seen font rendering issues when using the RTF control unbound.
A GoogleGRoups search will yield several relevant threads..
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
R

Robert Olson

I had trouble telling exactly what threads you mean, most of what I
found said to look for the threads :). The one I found was a query
about font types; I'm using Garamond, with switches to boldface and to
strikethrough at times, though I see the glitches even when I don't have
font changes. I'm setting the font using an RTF font table:

{\rtf1\deff0{\fonttbl{\f0 Garamond;} {\f1 Courier New;}}
\fs36 \ql {..data1...\line
....data2...\line
}Home: XXXXX\line
Work: XXXXX\line
Work: XXXX\line
(e-mail address removed)\line
}

I presume one workaround would be to gen up a query that creates a
report table that has the RTF preformatted.

thanks,
--bob
 
R

Robert Olson

And to answer my post again, now that I understand what the font choice
issue that was referred to means.

In the Other section of the RTF inspector there is a Font option that
shows in the list as just (Font). Clicking on it brings up a font
chooser; when I selected my TrueType font in there, things started
working just fine. Font changes in the RTF work as well, though I wonder
if there are subtle font metrics differences between the fonts that I'm
not seeing. In any event this is working great.

--bob

 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top