Hi,
I have a problem when I try to replace placeholders in a word document with the content of other word documents.
After the placeholder is a line break, when I replace the placeholder, I have a second line break in the main document.
I think the second linebreak comes from the other document. But until now I have no idea to delete the second line break.
I uploaded threefiles.
The main documnet is “Verfahrensstammdaten.doc” with the placeholder
“{@10008; Textbaustein:Fallzustaendig_Detail@}”. This placeholder should be replaced with the content from the file “Fallzustaendig_Detail.doc”. The file “Ergebnis.doc” is the result.file.zip (17.3 KB)
For the replacement I use this peace of code:
document.Range.Replace(new Regex(platzhalterwert.Platzhalterinfo.Definition), string.Empty, new FindReplaceOptions(replaceHandler));
Please help.