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