3cc Subj : Re: DEVMODE and OWL printing To : borland.public.cpp.borlandcpp From : "Richard Hufford" Date : Fri Feb 13 2004 08:43 am I don't know if this is your problem or not, but I ran into an interesting problem the other day. My OWL program uses classes derived from TPrinter and TPrintout. When you print using the TPrinter::TPrint method, TPrint checks to see how many copies the printer can print at a time. The variable is copiesPerPass. This variable was given a value of zero, and this resulted in an infinite loop that really filled up the print queue. To fix this, you can create a subclass of TPrinter and copy the TPrint() method from the source file. Add the line if (copiesPerPass <= 0) copiesPerPass=1; after the call to SetCopyCount. I don't know what version of OWL I use, but it came with Borland C++ 5.01. Also, the problem occurred on a Windows XP system with something like a Cannon i560 printer. . 0