Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document table fixed columns width #140

Closed
ztype opened this issue Dec 26, 2017 · 2 comments
Closed

document table fixed columns width #140

ztype opened this issue Dec 26, 2017 · 2 comments

Comments

@ztype
Copy link

ztype commented Dec 26, 2017

Hi,
I create a docx file,and add some tables in it. When I open it with Office Word,the table columns' don't show the width I specified in my code.
I find out this is because Office Word has an Automatically resize to fit contents option in every single table.The docx file would show properly if I disable this option in the table's properties in Office Word.
So,I suggust if there is a way to disable such option or fix the columns width as I wish?

@tbaliance
Copy link
Contributor

@ztype I added support for this that will be merged in soon.

table.Properties().SetLayout(wml.ST_TblLayoutTypeFixed)

@ztype
Copy link
Author

ztype commented Dec 28, 2017

great!
thx a lot

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

No branches or pull requests

2 participants