I'm finally getting started with PrintDocument and, naturally, having trouble... I've figured out how to get text printed on a page, but am having difficulty with pagination.
Our clerks handle many transactions in a day, but only some of the transactions need to be printed; the printed documentation for each transaction takes up a little less than half of a page. Currently, they print the transaction, cut off and recycle the bottom half of the page.
What I'd like to do is to print two transactions per page. The trick is that the user might print a transaction now, and not need to print another until a half-hour later, (with twenty other transactions between them).
Since Graphics.HasMorePages=True causes the PrintHandler subroutine to immediately execute again, it serves no purpose to my needs; I'm assuming that HasMorePages=False is the default, since I've found that the page prints immediately when the subroutine completes without setting HasMorePages, (my tests have given me either a completed top half, or a completed bottom half - but not a full page).
Is there a way to hold the print until I've populated both halves of the page? I'm beginning to suspect that I'll need a structure to hold the two sets of data, and not print until the structure is loaded with both transactions, (and make allowances for the user to print only a single transaction when needed).
Our clerks handle many transactions in a day, but only some of the transactions need to be printed; the printed documentation for each transaction takes up a little less than half of a page. Currently, they print the transaction, cut off and recycle the bottom half of the page.
What I'd like to do is to print two transactions per page. The trick is that the user might print a transaction now, and not need to print another until a half-hour later, (with twenty other transactions between them).
Since Graphics.HasMorePages=True causes the PrintHandler subroutine to immediately execute again, it serves no purpose to my needs; I'm assuming that HasMorePages=False is the default, since I've found that the page prints immediately when the subroutine completes without setting HasMorePages, (my tests have given me either a completed top half, or a completed bottom half - but not a full page).
Is there a way to hold the print until I've populated both halves of the page? I'm beginning to suspect that I'll need a structure to hold the two sets of data, and not print until the structure is loaded with both transactions, (and make allowances for the user to print only a single transaction when needed).