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

Word tables change height row of the template #563

Closed
FedePorti opened this issue May 28, 2021 · 5 comments
Closed

Word tables change height row of the template #563

FedePorti opened this issue May 28, 2021 · 5 comments

Comments

@FedePorti
Copy link

I upgrade to NPO 2.5.3 and when I modify the template the row height change and also the text is in the top position. Even if I set a height row it happen the same (I set the minimum height, because I want the height change automatically if the text doesn't fit)

Screenshot_1

@FedePorti
Copy link
Author

I think the problem is that is changing the table Indents and Spacing of the Paragraph

@tonyqus
Copy link
Member

tonyqus commented May 28, 2021

Please upload the original Word file.

@FedePorti
Copy link
Author

Here is the template and how is generated with NPOI 2.5.2 and 2.5.3 without changing the code in the program. If I do the step in the image the problem is solve (but only after is generated it, if I do that in the template is the same, it change the spacing after writing)
Modify NPOI 2.5.3.docx
Screenshot_1
Modify NPOI 2.5.2.docx
Template.docx

@FedePorti
Copy link
Author

I also notice that in the NPOI v2.5.2 (and I suppose also in the v2.5.3) it change the Spacing before the Paragraph on the title.
Screenshot_1
After Saving.docx
Template.docx

tonyqus added a commit that referenced this issue Jun 26, 2021
@tonyqus
Copy link
Member

tonyqus commented Jun 26, 2021

Thank you for submitting this word file. It did help reproduce a few style loss bugs. I attached the new generated docx based on the fixed version. The fixes will be included in 2.5.4.

output3.docx

Let me know if these fixes can meet your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants