QuickReports - Prepare sometimes causes Printer Setup Dialogue display
Posted on 2010-09-01
I’m using the following code to get number of pages in a document:
FOWill.QRLabel54.Caption := ' of ' + IntToStr(G_PageCount);
In a couple of places it will display the Printer Select Dialogue, where in others it does not. I use this same technique in several places in the program and it works great.
What can I be doing that will cause it to display this dialogue? I have put a break point on the “Prepare” statement and the one following it “G_PageCount…” and the select dialogue appears before it gets to the second statement.
Yet in other places in the program this works fine without the select dialogue being displayed, and I can see no differences in code in the ones that work and ones that don't I can’t find any posts or documentation that tells me why this would be happening.
-- Jim Lowary