Random failure to print a logo

  • Once in awhile we'll print a few hundred merged letters, and one of them will fail to print the logo (one logo is used per batch -- it is preloaded into a variable before the merge begins). We can re-print that one item and the logo is ok. We can re-print the whole batch and almost always all the logos are fine. This happens on different computers and printers.

    This happens in Delphi 7 and also in Delphi XE (duplicate code in each environment).

    Is there any known issue we can address? Sounds like a timing loop issue to me, but I have no idea where it might be, except that we seem to have eliminated delphi and the printer driver. Here's the code, which I'm sure looks familiar.