We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Search & Replace Text String in Word DOCX Document with BMP PNG Images using C# .NET

I found many support that used the similar logic to replaec text with image. But when I tried to use the same code, I got the following error
Argument 2: cannot convert from ‘ReplaceWithImageEvaluator’ to ‘string’
Argument 3: cannot convert from ‘bool’ to ‘Aspose.Words.Replacing.FindReplaceOptions’

would it be any new coding method for the function call Replace?

@queeniechan,

To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your simplified input Word document
  • The image file that you want to insert
  • Aspose.Words for .NET 20.8 generated output DOCX file showing the undesired behavior (if any)
  • Your expected DOCX file showing the desired output. You can create this document manually by using MS Word.
  • Please also share the source code that you are currently getting problems with

As soon as you get these pieces of information ready, we will start investigation into your scenario and provide you more information.

A post was split to a new topic: Replace Text Search String in Word Document with Image | C# .NET