Inserting child node change paragraph parent mark

Hello,

I have a scenario where the behaviour is not the one I expect.

I have a master document, that contains a reference to a childDocument. So when my program find that reference, will add a node to it and replace ChildDoc with its content.

For some reason, The paragraph mark keeps the childDocument node rather than keep the parent one.

I tried to change styles but didn’t work.

See pictures:

MasterDocument.png (21.0 KB)

ChildDoc.png (1.1 KB)

How it should look.png (59.6 KB)

After replacing contents:
how it looks.png (33.4 KB)

@cesypozo Could you please attach your source documents along with code that will allow us to reproduce the problem? We will check the issue and provide you more information.

This issue was fixed, I needed to apply the paragraph format to the nodes. THanks

1 Like