First, let me apologise if this message should not be here. I have the following problem.
I print a lot of Word Documents in a specific order. What happens is as follows: I want to print documents A-Z and in that order i want the printer to print it. I open a Word session. For every document in my list .. Open the document Print the document close the document Close the word session Between Delphi (MS-Word) and my printer there is of course WinSpool. The spooler gets the files i print in the correct order. >From the spooler to the printer itself is a whole other matter. The first 2 files in the printer Spooler are sent to the printer. Then, the third file comes in the spooler and after the 3rd, i see the next 5 documents in the spooler. The spooler sends the then first (3rd document) to the printer. That is all correct. But here is where the problem comes in. Instead of printing document 4, 5, 6 etc.... The spooler sends the documents at the bottom of the queue first to the printer. Then after about a few documents, it sends the first one in the spooler. Then a few new ones at the bottom again, then the first again. Then, ALL the documents at the bottom of the list. Only after they are done, are document 5 12 printed (or something like that). When i check to see how many documents there are in the queue, i see that there are a certain number. I then halt the printing, to empty the spooler. But the spooler does not do this. It will only release those documents when MS-Word has closed. I can not close MS-word, because I still need to print more. If I should try to close MS-Word, it will not close, because it is printing. After printing is done, it does not close. This is unfortunately the way MS-Word (2003) works. I tried the SetPrinter command with the PRINTER_CONTROL_RESUME and the JOB_CONTROL_SENT_TO_PRINTER commands, but nothing works. MS-Words keeps those documents locked and will not release them. There is no way i know i can influence the spooler. I have set everything about the printer i could set. RAW, EMF, Queue printing, all that. Nothing works. I tried the old MS-Dos method and send a FF to the printer. It prints, but still the documents that are locked stay locked. I do not know where the problem is. I am pretty sure my program works as intended. I see the documents going to the queue in the order i want. I think this is a problem with the printer driver, but i would be happy if someone told me that is really the case. As of today i only 'think' it is the printer driver together with the WinSpooler that brings up this problem. Is there a way to tell MS-Word that the documents need to be released other then closing MS-Word? I hope anyone can help me. TIA Marco

