Column doesn't auto size expectedly in XLSX if values are too short #2245
Replies: 4 comments 5 replies
-
May be you can try the following 2 options for excel: The documentation of it is given at REDME.MD-file: https://github.com/eclipse-birt/birt/blob/master/engine/uk.co.spudsoft.birt.emitters.excel/src/uk/co/spudsoft/birt/emitters/excel/README.md |
Beta Was this translation helpful? Give feedback.
-
I don't like an automatic minimum width for short values. We don't have auto column-width calculation in other emitters, so we should the Excel emitter support it? Automatic column width calculation is a very complex task. I think I'm qualified to say this because I contributed the "LongTable optimization" to the ReportLab PDF library decades ago. As a tool for user-defined column width calculation, it would help if BIRT offered a way to calculate the absolute width of a given text from script, something like |
Beta Was this translation helpful? Give feedback.
-
I've at least found an explanation for the change in behavior, which is the calling of This is at odds with the ignore table header/footer properties, because autoSizeColumn does not size columns based on the subset of rows, like If the width of the values is less than the default cell width, it sizes it based on the entire column including header/footer regardless of emitter setting. If the width of the values is larger than the default cell width, it properly ignores the header/footer. |
Beta Was this translation helpful? Give feedback.
-
Resolved with #2257 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
BIRT 4.20
I have some tables with columns that have a long header label, but where the actual values are short (2-3 characters). I'm trying to get these columns to shrink to a reasonable size for those short values.
In the screenshot below, notice that A,B,C have sizing dependent on the header length, and columns D,E,F are consistently sized based on the column values. I'm trying to achieve something closer to D,E,F. Is this expected?
ColumnSizing.rptdesign.txt
I can improve it by forcing line breaks in the table headers, but have been trying to find a way to just let Excel handle the word-wrap on the headers as needed.
Beta Was this translation helpful? Give feedback.
All reactions