[Gambas-user] How to close a report with the code
Gianluigi
bagonergi at gmail.com
Wed Feb 20 09:44:46 CET 2019
Hi Fabien,
if you received yesterday my email [0] with the project attached, you will
have seen that I did something similar to what you wrote.
Not knowing how to use the inches I converted everything in millimeters.
Now I will try to use what you have suggested using the inches of internal
functions.
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?
I remind you the other question: How can you stop the opening of the
preview in case of error?
Regards
Gianluigi
[0] https://lists.gambas-basic.org/pipermail/user/2019-February/066496.html
Il giorno mar 19 feb 2019 alle ore 21:08 Fabien Bodard <gambas.fr at gmail.com>
ha scritto:
> just for info :
>
> You have already :
>
> Report.UnitTo(Value, "cm","in")
> Report.UnitToInch(Value,"cm")
> and
> Report.AllowedUnits that return supported units as string array
>
> Thy must be used in your case as
>
> Me.UnitTo(....
> To get correct conversion with the current used device as the desktop
> resolution is not the same as printer one.
>
> It is important in the case of conversion from unity to pixel for example.
>
> Regards
>
>
>
>
>
> Le mar. 19 févr. 2019 à 15:52, Jussi Lahtinen
> <jussi.lahtinen at gmail.com> a écrit :
> >
> > Why?
> > I think in case of fatal error Quit is perfectly fine. I would first
> display error message and then give quit with error code.
> >
> >
> > Jussi
> >
> > On Tue, Feb 19, 2019 at 9:43 AM Fabien Bodard <gambas.fr at gmail.com>
> wrote:
> >>
> >> No Gui programs can be closed by Quit.
> >>
> >> Quit is just for Terminal programs.
> >>
> >> What is your idea ?
> >>
> >>
> >> Le lun. 18 févr. 2019 à 23:00, Gianluigi <bagonergi at gmail.com> a écrit
> :
> >> >
> >> > Hi Fabien,
> >> > if an error occurs during the opening of the report, can it be closed
> only with Quit?
> >> >
> >> > Regards
> >> > Gianluigi
> >> >
> >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
> ]----
> >>
> >>
> >>
> >> --
> >> Fabien Bodard
> >>
> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
> ]----
> >
> >
> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
>
>
> --
> Fabien Bodard
>
> ----[ 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/20190220/f0f2c549/attachment.html>
More information about the User
mailing list