Liquid UI - WS Reference Library

Word spell checker


Integrating Word Spell Checker, for verifying the text entered within a long text control in SAPGUI using Liquid UI.

User Interface

Click on ‘MS Word Spell Check’, Word spell checker opens up.

Click on ‘Change’ or ‘Change All’ or ‘AutoCorrect’ to apply the Spell Checker.

Once Complete, the text is updated on SAPGUI screen.

Liquid UI Script


// wsoffice.dll is required to be installed


// Sample User Interface
box([1,0], [12,72], "Spelling Check - MS Word Automation");
pushbutton([13,0],'@3V@MS Word Spell Check',{'process':spellCheck});

// Sample Function
function spellCheck() {
    var myWord = new ActiveXObject('Word.Application');

    myWord.Caption = "Spell Check";
    myWord.Visible = true;

    var doc = myWord.Documents.Add();
    doc.Content.Text = sampletext;

    newText = doc.Content.Text;
    doc.Saved = false;
    doc = null;

    myWord = null;

    onscreen '*'
        copytext({'fromstring':'newText', 'totext':'sampletext'});


Was this information helpful? Send Feedback