Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Lebans RichText Control Error 2771

Discussion in 'Information Technology' started by Jesse, Jul 28, 2006.

  1. Jesse

    Jesse
    Expand Collapse
    Guest

    I just went through Google groups to try to find some help for the
    aforementioned eror code. Sometime ago I read that if I installed the
    FMS rich text control tryout after installing Lebans RichText control
    it will mess the Lebans installation. I didn't remember at the time,
    so I have trouble now. I unistalled the FMA tryout but that didn't
    seem to solve the problem. The problem only occurs with the reports
    (using Access 2k2). The code I got from the Lebans Site.

    Dim Height As Integer
    ' Max height to allow for multiple RTF2 controls
    Dim MaxHeight As Integer

    ' Init MaxHeight
    MaxHeight = 0

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

    How can I fix the RTF2 mess up? Do I just install it over again?
    Thanks
     
  2. Jesse

    Jesse
    Expand Collapse
    Guest

    I unistalled the FMS tryout and Lebans Control. Installed the Lebans
    control again but still had the same problem. Now you'll tell me that
    I have to go through the Registry.
     
  3. Stephen Lebans

    Stephen Lebans
    Expand Collapse
    Guest

    That error code generally means you are trying to modify a property or call
    a method of the RTF2 cotnrol in the Open event of a Report. There are some
    things that you simply cannot do in the Open event as Access has not fully
    instantiated(created) the control at thsi point.

    --

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


    "Jesse" <monk@coqui.net> wrote in message
    news:1147424697.464318.218110@i39g2000cwa.googlegroups.com...
    >I just went through Google groups to try to find some help for the
    > aforementioned eror code. Sometime ago I read that if I installed the
    > FMS rich text control tryout after installing Lebans RichText control
    > it will mess the Lebans installation. I didn't remember at the time,
    > so I have trouble now. I unistalled the FMA tryout but that didn't
    > seem to solve the problem. The problem only occurs with the reports
    > (using Access 2k2). The code I got from the Lebans Site.
    >
    > Dim Height As Integer
    > ' Max height to allow for multiple RTF2 controls
    > Dim MaxHeight As Integer
    >
    > ' Init MaxHeight
    > MaxHeight = 0
    >
    > Height = Me.RTF_Description.Object.RTFheight
    > If Height > 0 Then
    > If Height < 32000 Then
    > Me.RTF_Description.Height = Height
    > 'Me.Section(acDetail).Height =
    > Me.RTF_Description.Height + Me.RTF_Description.Top
    > If MaxHeight > Me.RTF_Description.Height +
    > Me.RTF_Description.Top Then
    > MaxHeight = Me.RTF_Description.Height +
    > Me.RTF_Description.Top
    > End If
    > End If
    > End If
    >
    > How can I fix the RTF2 mess up? Do I just install it over again?
    > Thanks
    >
     

Share This Page