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

In the generated docx document, how can I control the column width of the table so that it does not increase due to excessive content? #527

Open
withegg opened this issue Dec 16, 2024 · 1 comment

Comments

@withegg
Copy link

withegg commented Dec 16, 2024

I generated a docx document and inserted a table with 4 rows and 4 columns in the document. Each cell contains content, but some of the content is causing the width of the table columns to expand significantly. I tried to control the width using percentage settings, but it was ineffective. What should I do?

cell2 := row.AddCell()
//cell2.Properties().SetWidthPercent(20)
cell2.Properties().SetWidth(250)
reqCell2 := cell2.AddParagraph().AddRun()
reqCell2.AddText(v8.Type)
reqCell2.Properties().SetSize(11)

Copy link

Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized,
other issues go into our backlog where they are assessed and fitted into the roadmap when suitable.
If you need to get this done, consider buying a license which also enables you to use it in your commercial products.
More information can be found on https://unidoc.io/

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

1 participant