GetDeviceCaps problem

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

I have a printer interface utility suite which I
find useful in printing in various ways.
It is based on the Win32Lib routines.
The first thing I do after calling getPrinter()
is a GetDeviceCaps to ascertain the printer
scaling factors, like this:
tmp = w32Func(xGetDeviceCaps, {getDC(Printer), HORZSIZE})
This works fine - and I do the same for VERTSIZE.
If I then call releasePrinter() to free the printer up,
and call getPrinter() *again* to choose another printer,
the GetDeviceCaps calls always return zero - which is kinda useless! 
I can't see why - does anyone have any idea - or better still, a fix?

Andy Drummond

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

Search



Quick Links

User menu

Not signed in.

Misc Menu