I downloaded Steve Leban's RTF2 control and it shows me the report as
wanted.
The Problem is, if i want to print it, it comes a PopUp where it says
"properties write protected" (german: "Eigenschaft ist schreibgeschützt")
and then i have to complete kill access to continue, unfortunately the
report wasnt printed.
Thats the code for the "format" of the RTFControl2 of the report which
is -IMHO- producing the malfunction. Is it maybe the name "RTFControl2"?
Private Sub Detailbereich_Format(Cancel As Integer, FormatCount As Integer)
Dim Height As Integer
Me.RTFControl2.Object.RTFtext = ""
Me.RTFControl2.Object.RTFtext = Me.RTFParagraph
Me.RTFControl2.Requery
Height = Me.RTFControl2.Object.RTFheight
If Height 0 Then
If Height < 32000 Then
Me.RTFControl2.Height = Height
End If
End If
Me.Section(acDetail).Height = Me.RTFControl2.Height + Me.RTFControl2.Top
If Me.RTFControl2.Object.RTFheight 0 Then
If Me.RTFControl2.Object.RTFheight < 32000 Then
Me.RTFControl2.Height = Me.RTFControl2.Object.RTFheight
End If
End If
Me.RTFControl2.RTFtext = Me.RTFControl2.RTFtext
End Sub
Whats wrong with that :) or with me ;) ...
Please tell me if you need further information! Thanks!