Home > other >  I have access to multiple CT_Row object, now want to create a Table, will CT_Row added to the Table
I have access to multiple CT_Row object, now want to create a Table, will CT_Row added to the Table

Time:04-21

The current implementation plans to use the following statement

TB=Table
For the row in lst_rows:
TB. Add_row (row)

But in the add_row times wrong, consult ace to give directions

CodePudding user response:

Also to help the top points, the above package import python - docx

CodePudding user response:

To explore a few times more, finally solve the problem, Shared with everyone:
TB=OxmlElement (' w: TBL)
For the row in lst_rows:
TB. Append (row)

CodePudding user response:

In the collar points, the top three

CodePudding user response:

Oneself solved, quite good!
  • Related