Results 1 to 2 of 2

Thread: Spelling check met word.

  1. #1

    Spelling check met word.

    Hoi,

    Ik heb een Delphi 10.1 applicatie die de spelling checker van Word gebruikt: USSpeller.

    Daar staat o.a. in:
    Code:
    //Constants for MS Word
      MSDialogWndClass2010 = 'bosa_sdm_msword';
      MSDialogWndClass2007 = 'bosa_sdm_Microsoft Office Word 12.0';
      MSDialogWndClass2003 = 'bosa_sdm_Microsoft Office Word 11.0';
      MSDialogWndClassXP   = 'bosa_sdm_Microsoft Word 10.0';
      MSDialogWndClass2000 = 'bosa_sdm_Microsoft Word 9.0';
      MSDialogWndClass97   = 'bosa_sdm_Microsoft Word 8.0';
      MSWordWndClass       = 'OpusApp';
    Code:
    s := Copy(FWordVersion, 1, 2); // Get first two chars from version number
        if s[2] = '.' then s := '0'+s[1]; // Add padding to single numbers
    
        if CompareStr('14', s) >= 0 then FWordApp.ScreenUpdating := False; // speed up winword's processing changed by Kameleon
    
        if s = '08' then
          FSpellClass := MSDialogWndClass97
        else if s = '09' then
          FSpellClass := MSDialogWndClass2000
        else if s = '10' then
          FSpellClass := MSDialogWndClassXP
        else if s = '11' then
          FSpellClass := MSDialogWndClass2003
        else if s = '12' then
          FSpellClass := MSDialogWndClass2007
        else if s = '14' then
          FSpellClass := MSDialogWndClass2010
        else
          FSpellClass := MSDialogWndClass2010;
    Nu is het zo dat er al een word versie 15.0 en 16.0 bestaat, maar daarvan kan ik de 'boas_sdm_...' waarden nergens vinden. Iemand een idee? Ik krijg nl meldingen van een zwart 'word spelling' schermpje met de nieuwere Word versies.

    Alvast bedankt!
    Last edited by Dany; 04-May-22 at 19:46.
    Vriendelijke groeten,
    Dany

  2. #2
    Quote Originally Posted by Dany View Post
    Ik krijg nl meldingen van een zwart 'word spelling' schermpje met de nieuwere Word versies.
    Misschien beter even zoeken op die meldingen dan (je hebt de meldingen of probleem niet zo goed omschreven hier).

    Mij lijkt dat die bosa_sdm_msword gewoon voor alle latere versies vanaf Office 10 gebruikt kan worden.
    (dus "else FSpellClass := MSDialogWndClass2010;" lijkt me dan wel correct)

    Edit: PS. Bij mij werkt USSpeller wel gewoon goed met Office 2021 (versie 16) zover ik kan zien.
    Last edited by rvk; 06-May-22 at 13:44.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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