Hello,
I am having an issue with the Replace method and Track Changes. Whenever I try to edit content that is within a sentence containing footnotes, the tracked changes show more than just the modified content. How can i resolve this?
Document docA = await ProcessingFunctionHelpers.LoadDocumentAsync(request.Stream, _logger);
Document clone = docA.Clone();
string rp = "Cox ABG Group, S.A. (fka Cox Energy Solar S.A., aka Grupo Cox, aka Cox Energy; “Cox”) is the ultimate parent company of the Cox corporate group, a conglomerate of renewable energy utility companies in Europe and Latin America.";
string og = "Cox ABG Group, S.A. (fka Cox Energy Solar S.A., aka Grupo Cox, aka Cox Energy; “Cox”) is the ultimate parent company of the Cox corporate group, a conglomerate of renewable energy utilities companies in Europe and Latin America.";
int howMany = docA.Range.Replace(og, rp);
int ignore = docA.Range.Replace(og, rp, new Aspose.Words.Replacing.FindReplaceOptions()
{
IgnoreFootnotes = true,
FindWholeWordsOnly = false,
IgnoreFieldCodes = true,
MatchCase = true,
IgnoreShapes = true
});
docA.Compare(clone, "GPT", DateTime.Now);
footnote-testing.docx (15.3 KB)