RTF2 Active X Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have downloaded and installed the RTF2 active X control and it works perfectly.
The problem I have is that I have 9 different Controls on the report for different memo fields it is tied to.
The first control, rtfcontrol, works great. It auto-grows when needed. However, the other controls do not auto-grow. I noticed the section of code that talked about rtfcontrol height.
Is it possible to have 9 of these controls on the same report? If so, Do I need to copy that section of code 9 times and change the rtfcontrol name to the name of the 9 different control boxes? Would I also have to change the variable Height to Height2, Height3, etc...?

If you could point me in the right direction I would much appreciate it.
 
You will have to modify the code to set the height for each RTF control.
You would use the RTFHeight prop of EACH seperate control to set the
CanGrow(n) height for EACH control. It's only a simple mod to the
existing code. Try it out yourself and you run into trouble post back
here for more help.

--

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


Todd said:
I have downloaded and installed the RTF2 active X control and it works perfectly.
The problem I have is that I have 9 different Controls on the report
for different memo fields it is tied to.
The first control, rtfcontrol, works great. It auto-grows when needed.
However, the other controls do not auto-grow. I noticed the section of
code that talked about rtfcontrol height.
Is it possible to have 9 of these controls on the same report? If so,
Do I need to copy that section of code 9 times and change the rtfcontrol
name to the name of the 9 different control boxes? Would I also have to
change the variable Height to Height2, Height3, etc...?
 
I apoligize for being so naive at this, but I am not sure where to even make that change.
I went into the report, went to the code section, went to format, but did not see any of the CanGrow(n) options
I am sure I am in the wrong area.
If you could point me int he right direction of what I need to do, I would be very appreciative.
 
If you look at the code in the Format event of the sample Reports
included in the MDB you downloaded there are several lines of code that
show exactly how to reset the RTF control's Height. You just have to
copy and paste them for each instance of your control(s) and simply
change the name of the control in the code to match that of your
control(s).
Try it and post back with your results.

--

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


Todd said:
I apoligize for being so naive at this, but I am not sure where to even make that change.
I went into the report, went to the code section, went to format, but
did not see any of the CanGrow(n) options.
I am sure I am in the wrong area.
If you could point me int he right direction of what I need to do, I
would be very appreciative.
 
Back
Top