python-docx-template icon indicating copy to clipboard operation
python-docx-template copied to clipboard

An example of nested horizontal merge

Open SergeyZaykov opened this issue 3 years ago • 4 comments

Describe the solution you'd like

An example of nested horizontal merge. In a table a group of columns nested into another (parent) column. Parent columns also repeated by a loop.

Additional context

изображение nested_horizontal_merge_tpl.docx

SergeyZaykov avatar Feb 18 '22 09:02 SergeyZaykov

@SergeyZaykov : Sir, Does your template work?

phong-ssk avatar Jul 02 '23 22:07 phong-ssk

@phong-ssk Yes, it works for me. Do you have any problem?

Here is a program for the testing.

#!/usr/bin/env python3
# -*- coding: utf-8 -*-


"""Testing the nested_horizontal_merge_tpl.docx template."""

from docxtpl import DocxTemplate

doc = DocxTemplate("nested_horizontal_merge_tpl.docx")
doc.render({})
doc.save("generated_doc.docx")

SergeyZaykov avatar Jul 28 '23 15:07 SergeyZaykov

Dear Sir, It does work for me as well! Thank you!

phong-ssk avatar Jul 29 '23 03:07 phong-ssk

@phong-ssk Have a nice day

SergeyZaykov avatar Jul 31 '23 19:07 SergeyZaykov