• Word VBA – Speed Up DOM Object Access?

    Author
    Topic
    #1774159

    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]

    Reply To: Word VBA – Speed Up DOM Object Access?

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: