[Gambas-user] printer.paper
Karl Reinl
karl.reinl at ...9...
Sun Jul 13 16:27:26 CEST 2014
Am Sonntag, den 13.07.2014, 14:49 +0200 schrieb Fabien Bodard:
> they are hard coded...
>
> 2014-07-13 0:33 GMT+02:00 Karl Reinl <karl.reinl at ...9...>:
> > Am Sonntag, den 13.07.2014, 00:23 +0200 schrieb Benoît Minisini:
> >> Le 13/07/2014 00:18, Karl Reinl a écrit :
> >> > Salut,
> >> >
> >> > do I have a chance to read out printer.paper sizes within gambas?
> >> >
> >>
> >> No, but they normally should be standard paper sizes (i.e. A4 is always
> >> 210mm x 297mm).
> >>
> > Ok, not good asked.
> >
> > do I have a chance to read out paper formats available for a printer, as
> > used as list in printer.config dialog stored in printer.paper?
> > --
> > Amicalement
> > Charlie
Thanks Fabien,
yes, that what I also found out.
gambas3 only know "A3","A4","A5","B5","Letter","Executive","Legal", all
others are "Custom" with PaperHeight and PaperWidth set.
I digged deeper and found out, for qt4:
- you can't set paper to 0="Custom" (you get default Paper, here "A4")
- if you write to Printer.PaperHeight and/or Printer.PaperWidth, Paper
change to 0="Custom"
- after Printer.configure() the printer object knows all his properties,
as they where made during Printer.configure, but not Printer.NumCopies
it is reset to 1
--
Amicalement
Charlie
More information about the User
mailing list