Skip to content

Conversation

@alexinnex
Copy link

@alexinnex alexinnex commented Nov 10, 2025

Add support for setting table preferred width via Table.width property. This allows programmatic control of the "Preferred width" checkbox in Word's Table Properties dialog, enabling true fixed-width behavior.

  • Add Table.width property (read/write)
  • Add CT_TblPr.width property
  • Register w:tblW element
  • Add unit tests and BDD scenarios
  • Add documentation to table-props.rst

Implements #1305

I manually tested that this feature does indeed work.

Add support for setting table preferred width via Table.width property.
This allows programmatic control of the "Preferred width" checkbox in
Word's Table Properties dialog, enabling true fixed-width behavior.

- Add Table.width property (read/write)
- Add CT_TblPr.width property
- Register w:tblW element
- Add unit tests and BDD scenarios
- Add documentation to table-props.rst

Implements python-openxml#1305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant