Need some more technical detail

Hi,

I am in touch with Aspose while I evaluate the product.
I browsed the API and went through DocumentBuilderDemo.java (this seems to be relevant to my technical use cases).
I do not get an idea about following -

  1. Say, I have a paragraph in a doc. There is just a word
    which I want to replace. moveToMergeField(str) method can take me to a position to a document like a new paragraph break etc.
    But how do I use this method to pinpoint to a particular word? E.g.
    “I want to replace the next word <>. So How do I just replace the value of customer with a different text?”

  2. I see that Aspose can set property of paragraph with new values. How can I read a property by traversing the document and insert a paragraph using the existing property? Say, I have various sub headings. It is important for me that I can dynamically put random text with propetries set to the correct subheading.

Thanks.

Hi

Thanks for your inquiry.

  1. You can use Range.Replace method to replace particular text with new text. Please follow the link to learn more:
    https://docs.aspose.com/words/net/find-and-replace/
  2. I think you should use styles to set formatting of the newly inserted paragraphs.
    https://reference.aspose.com/words/net/aspose.words/style/
    Hope this helps.
    Best regards.