Accessing Work DOM objects is slow, and if the structure is large enough, accessing individual elements becomes prohibitively slow.
I’m writing a C# WinForms application to access Word documents. For example:
foreach (Microsoft.Office.Interop.Word.Range item in myDocument.range.SpellingErrors)
{
string myString = item.Text;
}
might take too long of time but it’s still slow in VBA, too.
How is possible to speed up access? Can the object be copied as a C# object and work with it outside of Word?[/FONT]