You need to display a preview of the printed document along the lower edge of the form

You are creating a Windows Form that includes print functionality. The form includes a PrintDocument control. A PrintPage event handler contains code that renders the form data to a default printer. You need to display a preview of the printed document along the lower edge of the form.

You are creating a Windows Form that includes print functionality. The form includes a PrintDocument control. A PrintPage event handler contains code that renders the form data to a default printer. You need to display a preview of the printed document along the lower edge of the form.

A.
Set the PrinterSettings.PrinterName property of the PrintDocument control to Preview.

B.
Add a second PrintDocument control to your form.
Set the PrintController property of the PrintDocument type to a new instance of the PreviewPrintController type.

C.
Add a PrintPreviewControl control to your form.
Set the PrinterSettings.PrinterName property of the PrintDocument control to the Name property of the PrintPreviewControl control.

D.
Add a PrintPreviewControl control to your form.
Set the Document property of the PrintPreviewControl control to the existing PrintDocument instance.



Leave a Reply 0

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