Zur Startseite

JRSpellChecker

Zur Homepage

LoadWordbook(ByVal New_UsedWordbook As mywordbooks) As Boolean

Function:

JRSpellchecker will be initialized and the dictionary will be loaded.

If the local dictionary are used, you must set the
WordBookName and WordBookPath before.

If you doesn't use the WordBookPath properties the dictionary will be searched in the jrspell.ocx path.

If the MS-Word dictionary are used, you can select a special dictionary by use the WordBookName properties.
Please set WordBookName to "" to get the users standard dictionary.

         

ico_syntax Syntax:

JRSpell1.LoadWordbook xBook

xBook

LokalWordBook=0
WordWordBook=1


         

ico_weitere Return value:


True if the dictionary was loaded.

Fires no Event.

Example:

    Private Sub Form_Load()
      'Set the Language for User-Interface
      JRSpell1.UILanguage =
    english
      JRSpell1.SelectionColor =
    vbred
      JRSpell1.WordBookName = ""
      'set a path for
    lokal dictionary if needed otherwise the current path will be used
      JRSpell1.WordBookPath = ""
      'Load the Word dictionary
      If JRSpell1.LoadWordbook(1) = False Then
        MsgBox "The MS-Word dictionary " + JRSpell1.WordBookName + " was not found. The
    lokal dictionary will now be loaded"
        JRSpell1.WordBookName = "
    english.jsp"
        If JRSpell1.LoadWordbook(0) = False Then
            MsgBox "The dictionary " + JRSpell1.WordBookName + " was not found. Spell checking is disabled"
        End If
      End If
    End Sub