Hi
We have a word based text replace mechanism in our software.
The user creates a standard word document outside our software and upload it as a template.
The user is creating manually several text placeholder to be replace with a text in our software using aspose.words .net.
we have 2 problems that might have a single solution.
1.the user writes the replacement text placeholder , but it get spanned to a multiple text run (attached document named template.doc):
image.png (16.6 KB)
Those 2 highlighted texts are splitted to 3 text runs (2 XX and the middle with a number)
so we cant use text run replace , it wont find the whole XX12XX text.
So we try to use doc.Range.Replace.
It does replace the text, but its using the “latin text” font and not the hebrew/complex one :
image.png (14.4 KB)
So the replaced text is using “Arial” font and size instead of “David”.
Attached is the template.doc (inside zip)
template.zip (11.0 KB)
When using word automation on same document and doing replace ,
it replaces the whole XX12XX and using the font according to he new text language (if it is English letter , it uses the arial font , if Hebrew the david font in this case)
Please advice what should we do the get a similar behavior to the word replace text