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? #43

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

Comments

@withegg
Copy link

withegg commented Dec 13, 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)

@Tom179
Copy link

Tom179 commented Jan 13, 2025

same as you😨

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