Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Spell check works in IDE but in IIS7 (Windows7 32bit) window flashes and nothing happens.
posted
'    page var
Private WithEvents mspellChecker As XamSpellChecker
' page load event
    Dim spellBinding As New Binding()
            spellBinding.Mode = BindingMode.TwoWay
            Dim propPathSpellBinding As New PropertyPath("Text")
            spellBinding.Path = propPathSpellBinding
            spellBinding.Source = Me.narrative
            mspellChecker = New XamSpellChecker()
            mspellChecker.DictionaryUri = New Uri("Dictionaries/english-generic-whole.dict"UriKind.Relative)
            mspellChecker.SpellCheckTargets.Add(spellBinding)
            Me.LayoutRoot.Children.Add(mspellChecker)

' button click event
 Private Sub btnSpellCheck_Click(ByVal sender As System.ObjectByVal e As System.Windows.RoutedEventArgsHandles btnSpellCheck.Click
        Try
            mspellChecker.SpellCheckDialog.StartupPosition = StartupPosition.Manual
            mspellChecker.SpellCheckDialog.Top = 50
            mspellChecker.SpellCheckDialog.Left = 50
            mspellChecker.SpellCheck()

        Catch ex As Exception
            ErrorHandler(ex)
        End Try
    End Sub
the dictionaries are in teh clientbin folder on the website with the xap file 
clientbin
   dictionaries
   xxxxx.xap
Parents
  • 6475
    posted

    Hi,

    this is most probably an issue with downloading the dictionaries. You could add an event handler to DictionaryDownloadCompleted event and check the e.Error argument to see if something's wrong with downloading the dictionary.

     

    Hope this helps,

Reply Children