Error -2146822434 With Word Find and Replace VI

Updated Aug 16, 2018

Reported In

Software

  • LabVIEW Report Generation Toolkit
  • LabVIEW

Issue Details

I'm using the Word Find and Replace express VI which is included in the Report Generation Toolkit. I'm seeing Error -2146822434 and getting the error message that says an Exception occurred in Microsoft Word.

Solution

This error is caused by prompting Microsoft Word to find a string of characters that is too long. Microsoft Word's internal Find and Replace function limits the "Find" field to 255 characters including spaces. Alter your code to work within the limitations of Microsoft Word by reducing the length of string you are searching for. 

WAS THIS ARTICLE HELPFUL?

Not Helpful