1. GetDeviceCaps problem
- Posted by Andy Drummond <andy at kestreltele.com> Sep 08, 2005
- 483 views
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