0

How can I begin the spell check process for selected text / all text using the COM interface? There's an executeMenuCommand for javascript, but seems like there's no alternative for the COM interface.

user3791372
  • 4,445
  • 6
  • 44
  • 78

1 Answers1

0

I hate it when this happens! I walk away, and take a stab from a different angle!

((InDesign.MenuAction)app.MenuActions["Check Spelling..."]).Invoke();

Where app is the COM application. The cast is unnecessary, but allows you to see the properties of the menu action.

user3791372
  • 4,445
  • 6
  • 44
  • 78