Hi Aspose Team,
-> We are facing a problem while replace words with font properties in word documents.
-> But the problem is, we do not want to apply the font properties to all the occurrence of the same word in the word document file.
-> If we are using a word called Recipient Name in a word document and it is there 2 times in the same document then we do not want to apply the font properties to the 2nd occurrence of the word.
-> We are only trying to find and replace the 1st occurrence of the word not the 2nd one.
Q:- How to achieve the above problem?
-> Could you please find the attached files for your reference where you can find the 3 files, one is Input file and another one is the Output file and another on is the Expected_Output file.
Example.zip (64.0 KB)
-> In the above Input doc file, you can fine Recipient Name word 2 times.
-> But we want to apply Bold only to the 1st Recipient Name not the 2nd one.
Problem:- It is applying the font Bold to the 2nd Recipient Name that we do not want.
-> Could you please help us on this ASAP. Our code is already there in Production. We are in a hurry situation.
Note:-
-> We are using Aspose.Words 11.5 dll for .Net
Thanks & Regards,
Santosh Kumar Panigrahi