Am Sonntag, den 13.07.2014, 16:54 +0200 schrieb Fabien Bodard: > 2014-07-13 16:27 GMT+02:00 Karl Reinl <karl.re...@fen-net.de>: > > 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.re...@fen-net.de>: > >> > 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 > > that's why i've began to redraw the configure for report > Fabien,
yes, that's fine, put if a page size other then "A3","A4","A5","B5","Letter","Executive","Legal" is chosen, means "Custom", how will you pass them to the printer object. Yes you can do it by Printer.PaperHeight and/or Printer.PaperWidth. But I think that there is something wrong in the printer.object. And I do not see the necessity to reset Printer.NumCopies to 1, and Printer.FirstPage and Printer.LastPage are kept. -- Amicalement Charlie ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user