VSTO Word add-in 2007 Range.Find from background thread or worker
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I am trying to do a search in VSTO Word add-in 2007 from background thread or background worker. I'm getting an exception "External component has thrown an exception".
Range range = document.Content;
Find findSpell = range.Find;
findSpell.Text = "test"; //Exception is thrown hereIt works when I invoke it directly from the same thread. Is there any possibility to do this in background thread because this is lengthy operation? PS I'm trying to achieve similar functionality as spelling and grammar