Which code segment should you use to allow users to see a printed resume without printing the document?

You are busy developing a Microsoft Windows Forms resume builder application. Which code segment should you use to allow users to see a printed resume without printing the document? (Use a modal dialog box)

You are busy developing a Microsoft Windows Forms resume builder application. Which code segment should you use to allow users to see a printed resume without printing the document? (Use a modal dialog box)

A.
PrintPreviewDialog dialog = new PrintPreviewDialog[];
dialog.Document = document;
dialog.ShowDialog[];

B.
PrintPreviewDialog dialog = new PrintPreviewDialog[];
dialog.Document = document;
dialog.Show[];

C.
PrintDialog dialog = new PrintDialog[];
dialog.Document = document;
dialog.Show[];

D.
PrintDialog dialog = new PrintDialog[];
dialog.Document = document;
dialog.UseEXDialog = true
dialog.ShowDialog[];

Explanation:
The PrintPreviewDialog class represents the standard Print Preview dialog box. With this you can preview the document before you print it.

Incorrect Answers:
A, C, D: The Show method shows a modeless dialog box and not the modal dialog box. The PrintDialog class represents the standard Print dialog box. It does not allow you to preview the document.



Leave a Reply 0

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