[Gambas-user] Create a book with gb.report2

Gianluigi bagonergi at gmail.com
Fri Feb 15 17:52:32 CET 2019


Hi Fabien,
this attached, could be a solution.
Unfortunately it does not work well because Report.Font.TextWidth() gives a
higher result than reality.
Or it's me that I have not correctly set the comparison width.

Regards
Gianluigi
P.S. If you try to translate you get an error

Il giorno ven 15 feb 2019 alle ore 12:59 Gianluigi <bagonergi at gmail.com> ha
scritto:

> Hi Fabien,
> so, if I understand correctly, we need wrap the text before inserting it
> into the labels, right?
> In the example I attached, we need insert "\n" before loading the text
> into the array.
>
> Regards
> Gianluigi
>
> Il giorno ven 15 feb 2019 alle ore 11:58 Fabien Bodard <
> gambas.fr at gmail.com> ha scritto:
>
>>
>> Report textlabel is not implemented yet
>>
>>
>> Le ven. 15 févr. 2019 10:20, Gianluigi <bagonergi at gmail.com> a écrit :
>>
>>>
>>>
>>> Il giorno gio 14 feb 2019 alle ore 23:41 Gianluigi <bagonergi at gmail.com>
>>> ha scritto:
>>>
>>>> I would like to write a guide to gb.report2 on the Gambas-it wiki, but
>>>> I have been stuck for two days trying to format a book from a text file.
>>>> I cannot get the resizing of labels or textlabel, where am I doing
>>>> wrong?
>>>> I attach one of my tests.
>>>>
>>>> Regards
>>>> Gianluigi
>>>>
>>>
>>> The fact is that I cannot figure out if there is an automatic way to get
>>> the label wrap or the height expansion of the textlabel.
>>> Or do I have to arrange me and do it manually?
>>>
>>> Regards
>>> Gianluigi
>>>
>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>>
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190215/18a619dc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LoremReport-2-0.0.1.tar.gz
Type: application/gzip
Size: 92809 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190215/18a619dc/attachment-0001.gz>


More information about the User mailing list