Re: setPrintJobProperty problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

Judith Evans wrote:
> 
> CChris wrote:
> > 
> > Andy Drummond wrote:
> > > 
> > > Back to printing problems.
> > > I can open the default printer and print to it with no worries.
> > > I had to declare printerDC to be global in w32Resources.ew, that was OK.
> > > I'm now trying to change the print orientation using:
> > > 
> > >   setPrintJobProperty(JP_Orientation, DMORIENT_LANDSCAPE)
> > > 
> > 
> > This just works for me, using a laser printer under WinXP Home. Strange...
> > Try
> > calling it before getPrinter() perhaps.
> > 
> > CChris
> > 
> > > but I get no change in the output.
> > > Can anyone advise me on this? I tried calling the function immediately
> > > after
> > > assigning printerDC, and also after calling startDoc & startPage; still no
> > > go.
> > > If I still have to go to printer setup to do this then I might as well not
> > > be
> > > opening the default printer....
> > > 
> > > AndyD
> 
> CChris, it would be nice if we didn't have to OK the Print screen as well as
> the print setup screen. I'd like to be able to run a program which uses
> getPrinter
> and VOID=setPrintJobProperty(JP_Orientation, DMORIENT_LANDSCAPE) and have the
> printer start printing my document in landscape without interaction on my
> part.

See the code I recently posted for a getDefaultPrinter() function; doesn't it do
the job?

CChris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu