Re: setPrintJobProperty problem
- Posted by CChris <christian.cuvier at ?g?iculture.gouv.fr> Oct 30, 2007
- 613 views
Judith Evans wrote: > > CChris wrote: > > snip > > > I'm using the 70.2 file you sent and changed Generic.exw in the demos to > > > use > > > VOID=getDefaultPrinter() instead of getPrinter(). I also added > > > VOID=setPrintJobProperty(JP_Orientation, > > > DMORIENT_LANDSCAPE) right after getDefaultPrinter(). I needed to click > > > "OK" > > > in one popped up Window but printing shows the text in landscape as > > > desired. > > > I'm using a HP 5500 series All-In-One printer. I have no idea what driver > > > it > > > uses. > > > > > > judith > > > > Good news. Or bad news if the routine orks unreliably, depending to the > > printer. > > > > If I remember correctly, in an earlier email long ago, you mentioned that > > your > > print setup dialog box had some fields that weren't in mine. > > I'm afraid that the superfluous dialog box is something some drivers dumbly > > display even when obviously not needed. If someone knows better, I'll > > appreciate > > the input. Otherwise, I'm simply afraid that the extra box may not be > > avoided > > always, depending on the driver. > > > > I may have an idea, involving a custom template for an invisible dialog box > > that would close on open. Not for next version if this is the way to go. > > > > CChris > > btw can you determine which statement causes the dialog box to pop up, > > tracing > > into w32resources.ew? I cannot test this atm. > > I'm drawing a complete blank about extra fields in dialop box. I'll sleep on > it and maybe remember tomorrow. > I'll see if I can find where the dialog bog pops up. > > judith On Jun 25, 2007, I sent you an email with a screenshot of the print dialog I get (ps.bmp), which doesn't have the orientation field displayed, while apparently yours does. And I wrote: | On my home system at least (and here in office as well - see attachment), the | Print Setup page does not show page orientation, even when there is an "option" | tab. CChris