From: Alain A. <ala...@wa...> - 2015-10-12 15:55:15
|
Le 12/10/2015 16:58, Alain Aupeix a écrit : > Hi all, > > I generate a script and use setmode(2) to print in landscape. > It works when I print to a printer > > When I choose print in a file, the first page is now print in protrait > mode (when previewing or printing with system print box) > I have found a trick, but it's really curious. > Doubling the line 'page,1,mm,l ', done the trick. > I'm curious about an explanation. Do I fail, or is-it a bug of Hwgui or > a bug of gnome ? Well, I found the reason: hwgui seems to add a line job with wrong parameters job,589,836,2.83,2.83,utf8 the same line as if it wat in protrait mode without regarding the the setmode(2) command If I don't add a line, when I close the system printer box, cups adds this line: job,836.00,589.00,2.83,2.83,utf8 which invert the page size values, and it works Adding a line at the top of the file, don't allow cups to add the line, and I save the file with the bad job line Can you have a look to what is wrong in hprinter.prg ? Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2015-10-02 14:45) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2494) ------------------------------------------------------------------------ |