property overflow = Hidden leads to cut-off decimals with DOCX output #916
Replies: 8 comments 11 replies
-
@reiner-killet Can you create a simple report demonstrating the issue? |
Beta Was this translation helpful? Give feedback.
-
@reiner-killet Did you also test with BIRT 4.9? |
Beta Was this translation helpful? Give feedback.
-
Regarding your second question:
|
Beta Was this translation helpful? Give feedback.
-
I digged a bit into the sources.
I think that the commit makes sense (though our word reports may be effected just like like yours and we'll probably have to test and change them). But I can't reproduce the unintended cropping. For example, I took the sample report from #875. No cropping - though the overflow property for the data item PRODUCTNAME says Looking at the source code of |
Beta Was this translation helpful? Give feedback.
-
Enclosed please find template & XML data.
Von: Henning von Bargen ***@***.***>
Gesendet: Dienstag, 5. April 2022 15:21
An: eclipse/birt ***@***.***>
Cc: Reiner Killet ***@***.***>; Mention ***@***.***>
Betreff: Re: [eclipse/birt] property overflow = Hidden leads to cut-off decimals with DOCX output (Discussion #916)
Please attach the rptdesign in a *.zip file.
—
Reply to this email directly, view it on GitHub<#916 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWYBUAUJJD25SNXFSME6DCDVDQ45BANCNFSM5SSCUVQA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
I think the problem here is that "380.000.000,00" (meaning 380 millions in German) is considered as one word. And the representation of this word in Arial 10pt is wider than the column width specified. In my test report from #875 the long text consists of several words where each one fits into the column. That explains why it cannot be reproduced with that report. The behavior is similar to the PDF emitter if the By setting aforementioned option, the PDF emitter can be configured to break a word if it is too long even if it does not contain spaces. Maybe the DOCX emitter could use a similar option which would avoid calling the cropping in AbstractWordWriterXml.java if it's set, thus restoring the behavior before the commit 8c4f519). Search for "crop" in the Java source file to see what I mean. @reiner-killet Can you create a PR for this? |
Beta Was this translation helpful? Give feedback.
-
The XML data source does not contain 380.000.000,00 |
Beta Was this translation helpful? Give feedback.
-
In #1013 I proposed a way of setting overflow to visible without changing each and every label and (dynamic) text item. It works by using styles. |
Beta Was this translation helpful? Give feedback.
-
Hi,
since BIRT 4.8 we watch decimals being cut-off at the end of float values in table cells by the BIRT runtime (not RCP designer) with DOCX output.
I first tried to set "Overflow" to "Visible" for the entire table. This had no effect. Next, I examined inheritance of "Overflow" for rows, columns, cells, and data tags. I saw that it is not inherited from outside to inside. All inner elements were still showing "Overflow = Hidden (inherited)" what is wrong. Last, I set "Overflow" to "Visible" for the data tags. This works. Questions:
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions