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

Free Support Forum - aspose.com

Not able to replace content of caption

Hi Team,

Range.replace() is not working on caption of below format .
Figure SEQ Figure * ARABIC 1 Concentration-Time curve (PK analysis set)
this is what see Range.text
Actual value is something like (added as caption)
Figure 1 Concentration-Time curve (PK analysis set)

where as for this it’s working

SEQ Figure * ARABICFigure 2 Kaplan-Meier Curve of Durability of response during the maintenance Period (PDECR Analysis Set)

Actual value is something like (added as caption)
Figure 2 Kaplan-Meier Curve of Durability of response during the maintenance Period (PDECR Analysis Set)

@kkumaranil485

Could you please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a simple Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Hi Team,

PFA for above issue.

DocsToSend.zip (74.9 KB)

@kkumaranil485

We have tested the scenario using the latest version of Aspose.Words for .NET 21.8 with attached code example and have not found the shared issue. So, please use Aspose.Words for .NET 21.8.
Code.zip (1.9 KB)

We have attached the output document with this post for your kind reference. 21.8.docx (18.6 KB)