From RiskWiki
Jump to: navigation, search

bpcwwRichEdSpellChck - InfoPower RichEdit mod for spell checking

Language: Delphi 7 - 2007

Wol2Wol's richedit component comes witb an MS spell checker version, but it uses early binding which is problematic if the target computer does not have MS Word installed or uses a version earlier than the one built into the component (or the Dev machine has a different MS Word server library installed.

This version of the W2W rich edit control has been modified to use the BPC late binding MS Spellcheck and Thesaurius Wrapper

It requires the W2W / InfoPower rich edit controls. Due to copyright restrictions, the code for this control can not be provided to non BPC Developers and requires a valid developer license for RichEdit.

Refer http://www.woll2woll.com/

uses Windows, Messages, SysUtils, variants, classes, wwriched, ComCtrls, bpcMSSpellCheck, StdCtrls, ExtCtrls;

  TbpcwwDBRichEditMSWord = class(TwwDBRichEdit)
//     OrigWin32MajorVersion: integer;  reintroduce;
     FbpcMSSpellCheck : TbpcMSSpellCheck ;
     function Validserver : boolean;
//     procedure PopupMenuPopup(Sender: TObject); reintroduce;
    WDocWin: OleVariant;
     Function MSWordSpellChecker: boolean; override;
     Procedure CopyRichEditTo(val: TCustomRichEdit); override;
     property BPCMSSpellChecker : TbpcMSSpellCheck read FbpcMSSpellCheck write FbpcMSSpellCheck;