From: Alain A. <ala...@wa...> - 2015-10-12 18:34:04
|
Le 12/10/2015 17:55, Alain Aupeix a écrit : > 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 Hum, I correct. This works when I generate the script, and print it iùùediately, but not when I load the script. I found the reason : when I load a saved script, I must setmode() after having loaded the script. I thought it was recorded in the file but it seems not. 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) ------------------------------------------------------------------------ |