-
Notifications
You must be signed in to change notification settings - Fork 1.2k
cell.width has no effect to the cell width #247
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
Comments
Try setting the width on all the cells in that column to the width you want. You could also try setting the column width itself (as well as cells). The column width algorithm for Word is complex and fairly arbitrary it seems. It appears to take requests for size more as guidelines rather than commands :) |
I tried to set the first column to Inches(1.0) as well but there are no effect on the table as well.
|
Oh, ok. I set all the cells to the same width as the column one by one and it is working now. So, the library do not support setting a row with cells that have different width than the other rows? |
Word doesn't allow that. If you see something that looks like that, it's done by merging certain cells. A column is the same width from top to bottom. |
OK cool. I archived what I want with cell merging. That makes the code much more complicated though. Should I close this or leave it open? |
Did we have any solution for this? Am facing the same issue. |
«Word doesn't allow that. If you see something that looks like that, it's done by merging certain cells. A column is the same width from top to bottom.» That is not true since I can set a single cell width in word by selecting it before resizing the column. Does this mean that internally word creates a cell merging with this operation? |
I tried to change the width of a specific cell in a table using the following code
However, my cell still having the same size as others.
Am I doing it wrong? Thanks!
The text was updated successfully, but these errors were encountered: