<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Le mer. 20 févr. 2019 09:45, Gianluigi <<a href="mailto:bagonergi@gmail.com">bagonergi@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Fabien,<br>if you received yesterday my email [0] with the project attached, you will have seen that I did something similar to what you wrote.<br>Not knowing how to use the inches I converted everything in millimeters.<br></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">In internal i use inches to have a common size unit as resolutions are given in dot per inch. So one less convertion</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Now I will try to use what you have suggested using the inches of internal functions.<br>In your opinion, is a correct strategy to calculate the height of the textlabel for each paragraph based on the width of the sentences and then their number?<br>I remind you the other question: How can you stop the opening of the preview in case of error?<br><br>Regards<br>Gianluigi</div><div dir="ltr">[0] <a href="https://lists.gambas-basic.org/pipermail/user/2019-February/066496.html" target="_blank" rel="noreferrer">https://lists.gambas-basic.org/pipermail/user/2019-February/066496.html</a><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 19 feb 2019 alle ore 21:08 Fabien Bodard <<a href="mailto:gambas.fr@gmail.com" target="_blank" rel="noreferrer">gambas.fr@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">just for info :<br>
<br>
You have already :<br>
<br>
Report.UnitTo(Value, "cm","in")<br>
Report.UnitToInch(Value,"cm")<br>
and<br>
Report.AllowedUnits that return supported units as string array<br>
<br>
Thy must be used in your case as<br>
<br>
Me.UnitTo(....<br>
To get correct conversion with the current used device as the desktop<br>
resolution is not the same as printer one.<br>
<br>
It is important in the case of conversion from unity to pixel for example.<br>
<br>
Regards<br>
<br>
<br>
<br>
<br>
<br>
Le mar. 19 févr. 2019 à 15:52, Jussi Lahtinen<br>
<<a href="mailto:jussi.lahtinen@gmail.com" target="_blank" rel="noreferrer">jussi.lahtinen@gmail.com</a>> a écrit :<br>
><br>
> Why?<br>
> I think in case of fatal error Quit is perfectly fine. I would first display error message and then give quit with error code.<br>
><br>
><br>
> Jussi<br>
><br>
> On Tue, Feb 19, 2019 at 9:43 AM Fabien Bodard <<a href="mailto:gambas.fr@gmail.com" target="_blank" rel="noreferrer">gambas.fr@gmail.com</a>> wrote:<br>
>><br>
>> No Gui programs can be closed by Quit.<br>
>><br>
>> Quit is just for Terminal programs.<br>
>><br>
>> What is your idea ?<br>
>><br>
>><br>
>> Le lun. 18 févr. 2019 à 23:00, Gianluigi <<a href="mailto:bagonergi@gmail.com" target="_blank" rel="noreferrer">bagonergi@gmail.com</a>> a écrit :<br>
>> ><br>
>> > Hi Fabien,<br>
>> > if an error occurs during the opening of the report, can it be closed only with Quit?<br>
>> ><br>
>> > Regards<br>
>> > Gianluigi<br>
>> ><br>
>> > ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
>><br>
>><br>
>><br>
>> --<br>
>> Fabien Bodard<br>
>><br>
>> ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
><br>
><br>
> ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
<br>
<br>
<br>
-- <br>
Fabien Bodard<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div></div></div>