[英]Change docx4j Table Cell Background Color
I am currently trying to create a .docx Document using docx4j.我目前正在尝试使用 docx4j 创建一个 .docx 文档。 I have already created a few tables, and want to change the background- and text-color of the first table row.
我已经创建了一些表格,并且想要更改第一个表格行的背景颜色和文本颜色。 table in question
有问题的表
I would like to create a void function which gets a Tc (table cell) and String (color) as an argument.我想创建一个 void 函数,它获取 Tc(表格单元格)和 String(颜色)作为参数。 I actually havent found any help online.
我实际上还没有在网上找到任何帮助。 Thanks in advance :)
提前致谢 :)
您可以使用Docx4j Helper WordAddin或webapp从合适的示例 docx 生成 Java 代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.