[Gambas-user] gambas3 printer

Benoît Minisini gambas at ...1...
Fri Aug 1 11:31:49 CEST 2014


Le 31/07/2014 19:49, Charlie Reinl a écrit :
> Salut Benoît,
>
> digging around the gambas3 printer object, I can now say the following:
>
> - you can not set printer.paper=0, what means set to gambas 'Custom',
>    you earn a default.paper, in my case A4
>
> - changing PaperWidth and/or PaperHeight that will changing also
>    printer.paper
>
> - Changing from printer.orientation works well for A4 (my be all
>    gambas3 supported paper formats), PaperWidth and PaperHeight are
>    changed, but not for other possible Formats, changed by gambas3 to
>    'Custom' with PaperWidth/PaperHeight set.
>
> That works all well if use printer.Configure, but the troubles are I
> want to save this settings for a later use, so the values of the gambas3
> printer object counts for me.
>
> Thanks for your attention.
>

This strange behaviour actually comes from the Qt library. I will try to 
override it so that things become more logical.

-- 
Benoît Minisini




More information about the User mailing list