__ opens a dialog box that allows users to select printers other than the default printer. A. PrintController
B. PrintDialog
C. PrintDocument
D. PrintPreviewDialog
Which contains the data for the BeginPrint and EndPrint events on PrintDocument?
A. PrintPageEventArgs B. PrintEventArgs
C. PageSetupDialog
D. PrintPreviewControl
using the notes below i answered printer controller for the first and printeventargs for the second answer. they both came as wrong answers. please help me understand it.
p.s. the notes and the answers are marked in bold.
Important Printing Classes:
PrintDocument is used to send output to a printer. You instantiate a
PrintDocument, set some properties describing what to print, and
call the Print method. The PrintDocument raises a PrintPage event
for each page to be printed. You add your printing logic to an event
handler for this event.
PrintPageEventArgs The data for the PrintPage event on PrintDocument. It provides a
clipping rectangle and a Graphics object for the printing surface.
PrintEventArgs The data for the BeginPrint and EndPrint events on
PrintDocument. Allows the print job to be cancelled.
PrintDialog Printer selection dialog. Wraps the Win32 PrintDlg API.
PageSetupDialog Page properties dialog. Wraps the Win32 PageSetupDlg API.
PrintPreviewControl A control that displays a PrintDocument. Allows the creation of a print preview dialog.
PrintPreviewDialog A dialog that displays a PrintDocument by using the
PrintPreviewControl.
PrintController A PrintController controls how a PrintDocument is printed.
PrintDocument.Print uses a print control to render the document.
The .NET Framework provides two print controllers:
• DefaultPrintController renders to a printer.
• PreviewPrintController renders to the PrintPreviewControl. Typically, you never have to implement a PrintController. You implement a PrintController
only if you want to render to a different surface