HELP PLEASE...with Lebans RTF2 Richtext Control

G

Guest

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
 
S

Stephen Lebans

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.
 
G

Guest

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
 
S

Stephen Lebans

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.
 

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