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

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to