应用程序在代码中创建 OpenDocument 电子表格(ods 文件)。有些行包含更大字体的标题。如果在 LibreOffice 中打开,它们仅部分可见。
所有行都具有相同的样式 ro1 具有style:use-optimal-row-height="true"
设置:
<style:style style:name="ro1" style:family="table-row">
<style:table-row-properties style:use-optimal-row-height="true" fo:break-before="auto"/>
</style:style>
此设置不会增加标题行高度。所有行具有相同的高度。如何强制 Libreoffice Calc 和 Excel 为打开的表格上的标题行选择最佳高度?
在文件创建期间很难手动计算行高。