by rwilliams » Thu Jan 24, 2013 9:06 pm
I have a problem with the exact same symptoms on a larger scale. I tracked down the cause but I only have half a solution.
We are printing medical records. If I tell my application to print the entire chart it (it could be 70+ documents each multi page) it sends all of the documents, one at a time, to the printer as fast as it pulls them up. After the first document, is saved it tries to merge the second document with the first. In the mean time the third document is printing and it grabs the first document and tries to merg itself with it. This snowballs. I had a 26 page document that printed out only 8 of the pages because they all hit the spooler at the same time.
There needs to be a way to hold the spooler back from sending the next file while the application is still working on the last file.
I ended up switching my application to print different files using the <guid> tag so they were each unique.