Re: setPrintJobProperty problem

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

On 10/27/07, Judith Evans <guest at rapideuphoria.com> wrote:
>
>
> posted by: Judith Evans <camping at c?ewb.?et>
>
> CChris wrote:
> >
> > 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
>
> If you mean Greg's getDefaultPrinter.ew then no because the print setup window
> still appears and wants "OK" response.
> judith

Chris just modified my code into something more stream-lined for
Win32Lib. I have tested that code time and time again since I wrote it
(mostly with PDF and MODIW virtual printers) and never have I had the
print dialog appear. So unfortunately, I am at a loss.

What type of printer (and driver) are you using?

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu