in my customer’s solution, I have the following situation
- The program creates a new word document, which consists of specific placeholders.
- Placeholders are found and replaced with the empty text in the first step (
LoadText("")). It simulates a “cut out” of the placeholder.
- After that, the document content of another doc file is inserted at this new position using the
The content of the second doc does not contain an empty paragraph at the beginning, but anyhow after the content insertion, there is a new empty paragraph above the inserted doc file content.
Is this a known problem or bug maybe?
Atm I try to find a workaround to remove that additional new empty paragraph above afterward, by using
RemoveAt() method of the sections block collection. But it makes lots of follow up problems… and yes, it’s a dirty workaround.
The result in my generated new document is that I have 1 paragraph mark too much, which shouldn’t be there.
Thanks in advance for your feedback.