TextArea in reports is not aligned

Hi
I have used TextArea to add long text with formating in different lines, spaces etc. but when I run report I see all those spaces are gone and the texts are tightly populated in the report.

Screen

Report output:

How can I keep the formatting in the report?

I used DOCX as a template and PDF as output.

Hi!

Thank you for reporting the problem. We have created the Github issue.

By the way you can use HTML type template with PDF output file type. In this case formatting is correct, here is my example:

Regards,
Nadezhda.

Hi
I see this issue has been fixed in Jmix1.1. When can we expect this will be also fixed for CUBA PLATFORM?

Hi!

The issue has been fixed already in the YARG 2.2.11 release. You need to update your dependencies.

Regards,
Nadezhda.

Hi Nadezhda
Thanks. I have the latest version of the Studio and CUBA platform in my dev environment where I did a fresh try and here is what I got:

Template doc-type used: DOCX

  1. Mac Computer:
    When output doc type: DOCX, I got it nicely formatted that was displayed in “Pages” in my Mac as below:

  2. Windows:
    Both docx and pdf output types gave me raw texts as below:

I have attached the report files. Any thoughts?
Report for entity Job Profile (1).zip (40.6 KB)

Could you please find the library displayed on the screenshot below and open the bom.properties?
image

YARG version property should be displayed there.

Hi @n.shatalova
Here is the content of bom.properties file

#
# Copyright (c) 2008-2019 Haulmont.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

com.haulmont.yarg = 2.2.11
com.haulmont.yarg/yarg-api = ${com.haulmont.yarg}
com.haulmont.yarg/yarg = ${com.haulmont.yarg}

org.springframework/spring-test = ${org.springframework}
org.apache.poi/poi-ooxml = ${org.apache.poi/poi}
org.apache.poi/ooxml-schemas = 1.4
org.apache.xmlbeans/xmlbeans = 3.1.0

Hi @mortoza_khan

I tried to reproduce the issue using my Windows machine but my attempts were unsuccessful.

It could be helpful if you send us a small demo project because we cannot use your report attached above without a project.

Regards,
Nadezhda.

Hi @n.shatalova
Please find attached the test project as requested.
textarea.zip (97.1 KB)
regards

Hi @mortoza_khan.

Thanks a lot for the example, the problem was reproduced, we have created the Github issue.

As workaround you can use RichTextArea component instead of TextArea now.

Regards,
Nadezhda.

1 Like