Re: HELP PLEASE...with Lebans RTF2 Richtext Control

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Mike if you search GoogleGroups for your issues you will find 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.


"Mike Robinson" <MikeRobinson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FB0FB404-FFC7-40B2-9301-462C5E69F264@xxxxxxxxxxxxxxxx
Mr. Lebans,
First let me say I appreciate your efforts in this and other groups, they
have helped me tremendously, as I am sure it has others.

Yes, I do have my control named "RTFcontrol"
Basically, I am using this RTF to view preventive maintenace procedures
contained in a memo field. Sometimes these procedures can be up to 10
printed
pages long.

I was writing them in word, using a table just for visual seperation
between
items. I then just copy it to the clipboard and paste directly into my
entry
form.

The control workd great on my entry form...it is just the report I am
having
a problem with. I will detail it below:

1.Steping through the code, it seems that the 32000 is what I am exceding
and that is when my problem occurs. I am assuming this is the limit of the
access detail section size. Basically this causes the last portions of the
memo field to be cut off and leave off the last part of the PM procedure.

2.At the bottom of each page, the control tends to cut-off, or break,
right
in the middle of a line (vertically...only the top portion of the line is
visible).

I have considered breaking the PM procedures in mulitple records in a
different table and link this to the master information if necessary, but
am
not sure if this will solve the problem.

Any help with this problem would be greatly appriciated.

thanks,
Mike Robinson






"Stephen Lebans" wrote:

Mike did you change the name of your RTF2 ActiveX control to match the
sample code below, "RTFcontrol"?

--

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


"Mike Robinson" <MikeRobinson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BB0201B2-C872-46E7-B358-5F605EAFCF0D@xxxxxxxxxxxxxxxx
I downloaded the sample file "A2K RTF2 Sample Release 5-5"
It works great with the sample data and sample report.

My problem:
My report that i want to use will not grow and add a second page if
necessary, the way the sample does.
I pasted this code:

Private Sub Detail1_Format(Cancel As Integer, FormatCount As Integer)
Dim Height As Integer

Height = Me.RTFcontrol.Object.RTFheight
If Height > 0 Then
If Height < 32000 Then
Me.RTFcontrol.Height = Height
End If
End If
Me.Section(acDetail).Height = Me.RTFcontrol.Height +
Me.RTFcontrol.Top

If Me.RTFcontrol.Object.RTFheight > 0 Then
If Me.RTFcontrol.Object.RTFheight < 32000 Then
Me.RTFcontrol.Height = Me.RTFcontrol.Object.RTFheight
End If
End If
End Sub

Which I got right from the sample report.

I also took my text and pasted it into the sample table and used the
sample
report with same results.
My paste method is copying text, from MS Word to the clipboard, then
pasting
into the RTF2 control. My text does have a table in the Word file.

I also tried just a "text only" paste, using just a letter type file, I
got
the same results. I am MISSING something here.

PLEASE HELP

Thanks

Mike Robinson





.



Relevant Pages

  • Re: Conditional formatting changes field enabled property?
    ... set the FomatConditions object props for this control to the previously ... Access Code, Tips and Tricks ... formatting he wants the condition to set AND, most ... "Stephen Lebans" wrote: ...
    (microsoft.public.access.forms)
  • Re: Conditional formatting changes field enabled property?
    ... "Stephen Lebans" wrote: ... set the FomatConditions object props for this control to the previously ... Access Code, Tips and Tricks ... with programming ability like you would have already done it. ...
    (microsoft.public.access.forms)
  • Re: Conditional formatting changes field enabled property?
    ... it will HOLD that user-set formatting forever (until the user ... "Stephen Lebans" wrote: ... return True or Flase depending if you want CF to paint the control or not. ... Access Code, Tips and Tricks ...
    (microsoft.public.access.forms)
  • Re: PrintLines without border in last record
    ... Add a logic check before the current code is called to draw any lines. ... I sent in your email the example with problem in report. ... Stephen Lebans escreveu: ... Dim CtlDetail As Control ...
    (comp.databases.ms-access)
  • Re: PrintLines without border in last record
    ... Stephen Lebans escreveu: ... I sent in your email the example with problem in report. ... Alternatively, if I remember correctly, the PrintLines class solution on ... Dim CtlDetail As Control ...
    (comp.databases.ms-access)