Windows XP SP2
Excel 2007 SP2
PDFCreator 0.9.3
Hi
I have been using the Ken Puls' (ExcelGuru) code for creating a single PDF file from multiple worksheets found here:
http://www.excelguru.ca/node/21#MultiSingle
SUMMARY - Ken's code assumes that jobs added sequentially to the PDFCreator job queue are cumulative, however my problem is that old jobs drop out of the queue before new jobs are added.
I have posted a problematic excerpt of the code and the output.
So - this code executes once all the required worksheets (3 of them) have had the PrintOut method invoked. I've added some debugging code to illustrate my problem.
Output:
As such, jobs appear to be getting added to the queue but then being processed before the rest of jobs are being added. The result is that the PDF created only contains one of the worksheets. I added the check against the Timer as part of the loop condition because my code was looping forever.
This is an intermittent problem - when I ran this the first couple of times getting the stuff together for this post it ran perfectly!
Any help would be gratefully received.
Thanks
Bookmarks