Re: setPrintJobProperty problem
- Posted by Andy Drummond <andy at kestre?tele?com> Oct 30, 2007
- 630 views
Judith Evans wrote: > > > I missed that after the printer is assigned in generic.exw in printdoc routine > there is a getPageSetup(). If I comment that then the text is in Portrait just > as Andy said he experienced. My tests using Generic.exw opened the > getPageSetup > dialog where landscape radio button is checked so naturally I got Landscape > print. > > Sorry for the confusion. > > judith Interestingly, if you call setPrinterJobProperty() and set the orientation to lanscape in there, and then call getPageSetup(), that latter routine shows the orientation as landscape. Pressing OK makes it print landscape. If you hit cancel instead, even though it showed landscape, it prints portrait. It looks as if setting the orientation has set the input to getPageSetup() but that the result of that routine still defaults to the default page setup, i.e. portrait. It is very strange. AndyD