Which of the following event will programmatically change the page settings of individual pages as they are printed?

You are busy creating a PrintDocument instance that represents a report to print. Which of the following event will programmatically change the page settings of individual pages as they are printed?

You are busy creating a PrintDocument instance that represents a report to print. Which of the following event will programmatically change the page settings of individual pages as they are printed?

A.
QueryPageSettings

B.
BeginPrint

C.
PrintPage

D.
EndPage

Explanation:
The QueryPageSettings is raised before the printing starts. You can then modify the page.

Incorrect Answers:
B: The BeginPrint is raised before the first page is print. You need this for multiple page settings.
C: The PrintPage raise an event when a page is print, you cannot change settings at that stage.
D: The EndPage is shown when the print job is finished.



Leave a Reply 0

Your email address will not be published. Required fields are marked *