|
|
Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
I have MS Word 2003 embedded into ActiveX and then into HTML page in IE. Word has "Customize..." menu item greyed out and it can not be activated by:
CommandBars("Menu Bar").Controls("Tools").Controls("&Customize...").Enabled = True (it does not set 'Enabled' at whole)
or CommandBars.DisableCustomize = false; (it is already 'false').
It seems, that ActiveX as container for Word makes this menu item disabled. Excel as container for Word does not make "Customize" disabled.
What is the trick here?
Regards,
Roman Prytkov
|
|
I tried following approaches with Word automation to make Tools/Customize enabled (this is pseudo-code, illustrating approach): 1) CommandBars("Menu Bar").Controls("Tools").Controls("&Customize...").Enabled = true 2) WordBasic.ToolsCustomize() 3) CommandBars("Menu Bar").Controls("Tools").Protection = msoBarNoProtection 4) CommandBars("Menu Bar").Controls("Tools").DisableCustomize = False nothing of these works. I tried them steps by steps, controlling the access and return results - they works till the final point - "Tools/Customize" remains disabled. The same behavior Word demonstrates when it is embedded into Excel or TestContainer (tstcon32.exe). What makes "Tools/Customize" disabled - is it common for OLE containers and is it possible to activate it?
|
|
|