Skip to content

Can insert table from A.docx to B.docx? #719

@damagebro

Description

@damagebro

Hi,
I want to use one table style from A.docx, and generage more table in B.docx;
or, Can I set <w:tcPr>, to fill color in a table cell, which XML is <w:shd w:val="clear" w:color="auto" w:fill="A6A6A6"/>?

docx_A = Document("A.docx")
A_tbl = docx_A.tables[0]

docx_B = Document()
docx_B.add_table(rows=4, cols=4, style='Table Grid');
#docx_B.insert_table(A_tbl )???
docx_B.save("B.docx")

Best Wishes:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions