Welcome to SPN

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

Sign Up Now!
  1. Monthly (Recurring) Target: $300 :: Achieved: $95
      Become a Supporter    ::   Make a Contribution   

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
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page