I need to toggle the ignore Upper case option on the tools options menu of Word when doing a spell check from Oracle forms. What is the OLE code to do this? I already have the code to do the spell check working.
To set the ignore upper case to true, you could use the following:
hApplication := OLE2.CREATE_OBJ('Word.Application');
hOptions := OLE2.GET_OBJ_PROPERTY(hApplication, 'Options');
OLE2.SET_PROPERTY(hOptions, 'IgnoreUppercase', TRUE);
To actually toggle the setting, try this:
OLE2.SET_PROPERTY(hOptions, 'IgnoreUppercase', NOT OLE2.GET_BOOL_PROPERTY(hOptions, 'IgnoreUppercase'));
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.