[RESOLVED] Runtime Error 2147417848 (80010108) 'iRichtext '-VBForums
Results 1 to 7 of 7

Thread: [RESOLVED] Runtime Error 2147417848 (80010108) 'iRichtext '

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2012
    Posts
    47

    Resolved [RESOLVED] Runtime Error 2147417848 (80010108) 'iRichtext '

    hi
    When i try to get text from ACCESS table
    this message show
    why?
    Attached Images Attached Images  
    Attached Files Attached Files

  2. #2
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    11,862

    Re: Runtime Error 2147417848 (80010108) 'iRichtext '

    Show the related code where the error occurs in a post

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Posts
    17,068

    Re: Runtime Error 2147417848 (80010108) 'iRichtext '

    Why query for an updateable rowset when you only need to read the data?

    In any case the database field contains what looks like a broken RTF fragment, not a complete RTF document or even a clean fragment. You can't assign an incomplete fragment to the RichTextBox.TextRTF property.

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Posts
    17,068

    Re: Runtime Error 2147417848 (80010108) 'iRichtext '

    I saw:

    Code:
    \pard \sb80 \sa40 \b0 \f1 \cf2 \'f5\u788?\'f0\'e5\'f1\'f9\u837?\u834?\'ef\'ed\cf0 \f0 \par \f3 hupero\u772?on\cf0 \f0 \par \i1 hoop-er-o'-on\cf0 \i0 \par Neuter of a derivative of {\cf11\ul G5228}; a \i1 higher\i0  part of the house, that is, apartment in the \i1 third\i0  \i1 story:\i0  - upper chamber (room).\par
    This has a lot of flaws, but the main problem might be the .\par at the end or those \uxxx? tokens.

  5. #5

    Thread Starter
    Member
    Join Date
    Aug 2012
    Posts
    47

    Re: Runtime Error 2147417848 (80010108) 'iRichtext '

    I think that this format saved to word Document(*.doc) not Rich text format(*.rtf)
    How get the text without formatting
    this is text
    Code:
    ὑπερῷον
    huperōon
    hoop-er-o'-on
    Neuter of a derivative of G5228; a higher part of the house, that is, apartment in the third story: - upper chamber (room).
    thanks

  6. #6
    PowerPoster
    Join Date
    Feb 2006
    Posts
    17,068

    Re: Runtime Error 2147417848 (80010108) 'iRichtext '

    No, it is definitely RTF.

    Well you have to wrap the fragment, e.g.:

    Code:
    Option Explicit
    
    Private Const RTF As String = _
          "\pard \sb80 \sa40 \b0 \f1 \cf2 \'f5\u788?\'f0\'e5\'f1\'f9\u837?\u834?" _
        & "\'ef\'ed\cf0 \f0 \par \f3 hupero\u772?on\cf0 \f0 \par \i1 hoop-er-o'-on" _
        & "\cf0 \i0 \par Neuter of a derivative of {\cf11\ul G5228}; a \i1 higher" _
        & "\i0  part of the house, that is, apartment in the \i1 third\i0  \i1 story:" _
        & "\i0  - upper chamber (room).\par"
    
    Private Sub Command1_Click()
        RichTextBox1.TextRTF = "{\rtf1" & RTF & "}"
    End Sub

  7. #7

    Thread Starter
    Member
    Join Date
    Aug 2012
    Posts
    47

    Re: Runtime Error 2147417848 (80010108) 'iRichtext '

    thanks dilettante
    it work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.