# Can OnlyOffice Handle DOCX Insertions Like Word?

**URL:** https://community.onlyoffice.com/t/can-onlyoffice-handle-docx-insertions-like-word/12794
**Category:** Document Builder
**Created:** [4 February 2025 08:39 UTC](https://community.onlyoffice.com/t/can-onlyoffice-handle-docx-insertions-like-word/12794 "2025-02-04T08:39:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Manish](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@Manish](https://community.onlyoffice.com/u/Manish)
#### Post date: [4 February 2025 08:39 UTC](https://community.onlyoffice.com/t/can-onlyoffice-handle-docx-insertions-like-word/12794/1 "2025-02-04T08:39:09Z")

</div>

Hi,

I’m encountering an issue while using `docxtpl` to insert one DOCX file into another. Specifically, I’m trying to insert `Test2.docx` into `Test1.docx`, and the result (`output.docx`) is not formatted correctly in OnlyOffice, though it works fine in Microsoft Word.

The problem is that the inserted content from `Test2.docx` seems to be placed incorrectly within the structure of `Test1.docx`, leading to formatting issues in OnlyOffice. Word handles it better, but OnlyOffice doesn’t seem to interpret the inserted content correctly.

Looks like I can’t attach the DOCX files here, but I can provide links to the raw `document.xml` files for each of the DOCX documents.

Here are the links to the `document.xml` files:

- [Test1 Document XML](https://pastebin.com/VinsA9Ug)
- [Test2 Document XML](https://pastebin.com/0yv3Lipa)
- [Output Document XML](https://pastebin.com/JhYygcbQ)

Additionally, attaching screenshots to demonstrate the issue:

- **Screenshot in Word:**  

- **Screenshot in OnlyOffice:** [link to OnlyOffice screenshot]  

If anyone has any insights or has faced a similar issue, I’d love to hear your thoughts. Specifically, I’m wondering if there’s a way to make OnlyOffice handle DOCX insertions the same way Word does, without breaking the formatting.

Thanks in advance for any help!

---

<div class="post-metadata">

### Author: ![Roman](https://community.onlyoffice.com/user_avatar/community.onlyoffice.com/roman/32/6430_2.png) [@Roman](https://community.onlyoffice.com/u/Roman)
#### Post date: [7 February 2025 11:32 UTC](https://community.onlyoffice.com/t/can-onlyoffice-handle-docx-insertions-like-word/12794/2 "2025-02-07T11:32:39Z")

</div>

Hello @Manish,  
Could you upload the files where the issue occurs to a cloud storage service and provide us with a download link?
