| 
     
      
      
      From: Alain A. <ala...@wa...> - 2015-10-12 14:58:24
      
     
   | 
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 gnmoe ? Another thing: I have not the syntaxe of printer commands, but I found it searching in source, and I can use a great part of them without problem. But I can't figure how to set duplex in setmode() I have tried a value of 2 for short edge 'setmode(2,2)' but the printer doesn't understand, and there is no duplex when printing. 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) ------------------------------------------------------------------------  |