Hi there, docs says In order to enable spell checking functionality based on particular language, language pack for .NET Framework should be installed in the machine.
What do I do in .Net 6?
Thanks.
Altough I defined a custom default dictionary and it is there, and Thread.CurrentThread.CurrentUICulture is set properly, Spellchecker continues to check in English. It performs well in English BTW.
Shall the dictionary be in UTF-8?
In fact, if I define the custom dictionaries and enable spell checking, existing docx documents never load completely. Usually they time out, or hang completely.
Update: even if I don't define custom dictionaries, just enable spellcheck, loading hangs. Usually at the last page.
If I don't try to spellcheck, if any other error occurs during load (like "width and height cannot be zero"), the next attempt to load another document fails with a null exception on await loadAsync. My code follows your instructions:
Task
CancellationTokenSource sCts = new CancellationTokenSource();
try
{
sCts.CancelAfter(3500);
loadAsyncTask = RichTextBoxAdv.LoadAsync(fileName, sCts.Token);
await loadAsyncTask;
}
catch (TaskCanceledException)
{
TbMessage.Text = "loading incomplete";
}
catch ( Exception ex )
{
TbMessage.Text = ex.Message;
}
finally
{
sCts.Dispose();
sCts = null;
loadAsyncTask?.Dispose();
loadAsyncTask = null;
}
Issue |
|
1., if I define the custom dictionaries and enable spell checking, existing Docx documents never load completely. Usually, they time out or hang completely. 2. even if I don't define custom dictionaries, just enable spellcheck, loading hangs. Usually at the last page. |
When spellcheck is enabled in the Asynchronous loading, the spell-checking process will be initiated only after layouting all pages. Thus, the document loading slows down and currently, we don’t have a feature to Spell check the document asynchronously. But we have already added it to our feature list. and, we do not have any immediate plan to implement this feature. We will let you know once the feature is implemented. To track the status of the feature, please use the following feedback link. https://www.syncfusion.com/feedback/3003/spell-check-the-document-asynchronously |
3. If I don't try to spellcheck, if any other error occurs during load (like "width and height cannot be zero") |
We suspect you have been mentioning the issue which you have reported in forum 171091. Please follow up on the respective incident for further assistance. |
4. In next attempt to load another document fails with a null exception on await loadAsync |
Please share with us the issue reproducing document to reproduce the reported issue from our side because it will help us to validate and provide you the appropriate solution at the earliest. |
Well, Kalaivannan, thanks for the update. Now with sync loading the document loads even if spell checking is enabled.
It takes a 6 pages docx 74 secs on my developer machine. True, all HU words are underlined red.
I think we have another thread open regarding foreign language spellcheck.
Please comment.
Kalaivannan, thanks for help. It works with limitations. Please close this thread. I will try to summarize (in table form?) my findings and minor headaches in a new thread.