RTF2 on report doesn't work

G

Guest

i seem to be the only dummy here
i have a rtf2 control on my report with the following control source
=[forms]![reportprinting].[notes]
which is also a rtf2 control
but all i get is "rtf2 control view design window"
interestigly enough the report's control GROWS according with the rtf text
in the form but the actual CONTENTS does not show up
please help
 
S

Stephen Lebans

I do not remember testing to see if one RTF2 control can be bound to
another. Since both controls are on the same report why don't you simply set
the controlsource of the second control to the actual controlsource of the
first RTF2 control?
If whatever reason you must use the first control's contents directly then
leave the ControlSource prop blank and in the Format event of the section do
something like:

Me.SecondRTF2ControlName.object.RTFText =
Me.FirstRTF2ControlName.object.RTFText


--

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

Guest

thanks mr. lebans for taking the time to answer. pardon, if i havent
explained myself quite right. the first rtf2 control is a form not a report
and it has no source, it is a field for user input to add notes to a report.

now, i have used the format event and that works fine, but i wonder if it is
possible to use controlsource?

another problem, that if i put 2 such controls on a report with the format
event the report becomes ABNORMALLY slow

please advise and my greatest appreciation.
--
Thankfully, YisMan


Stephen Lebans said:
I do not remember testing to see if one RTF2 control can be bound to
another. Since both controls are on the same report why don't you simply set
the controlsource of the second control to the actual controlsource of the
first RTF2 control?
If whatever reason you must use the first control's contents directly then
leave the ControlSource prop blank and in the Format event of the section do
something like:

Me.SecondRTF2ControlName.object.RTFText =
Me.FirstRTF2ControlName.object.RTFText


--

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


YisMan said:
i seem to be the only dummy here
i have a rtf2 control on my report with the following control source
=[forms]![reportprinting].[notes]
which is also a rtf2 control
but all i get is "rtf2 control view design window"
interestigly enough the report's control GROWS according with the rtf text
in the form but the actual CONTENTS does not show up
please help
 
S

Stephen Lebans

You cannot set the ControlSource to the contents of an Unboudn RTF2 control.
I posted the logic to accomplish this programmatically so I do not see why
you are still working on this issue.

If you want speed then create a Temp table with the required Memo fields and
bind the RTF2 controls to these Memo fields. Just update the data as
required prior to printing the report.

--

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


YisMan said:
thanks mr. lebans for taking the time to answer. pardon, if i havent
explained myself quite right. the first rtf2 control is a form not a
report
and it has no source, it is a field for user input to add notes to a
report.

now, i have used the format event and that works fine, but i wonder if it
is
possible to use controlsource?

another problem, that if i put 2 such controls on a report with the format
event the report becomes ABNORMALLY slow

please advise and my greatest appreciation.
--
Thankfully, YisMan


Stephen Lebans said:
I do not remember testing to see if one RTF2 control can be bound to
another. Since both controls are on the same report why don't you simply
set
the controlsource of the second control to the actual controlsource of
the
first RTF2 control?
If whatever reason you must use the first control's contents directly
then
leave the ControlSource prop blank and in the Format event of the section
do
something like:

Me.SecondRTF2ControlName.object.RTFText =
Me.FirstRTF2ControlName.object.RTFText


--

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


YisMan said:
i seem to be the only dummy here
i have a rtf2 control on my report with the following control source
=[forms]![reportprinting].[notes]
which is also a rtf2 control
but all i get is "rtf2 control view design window"
interestigly enough the report's control GROWS according with the rtf
text
in the form but the actual CONTENTS does not show up
please help
 

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