You are creating a Windows Forms application that manages document creation.You need to display a customized print preview of the document that show within the main form. You want the customized view to display without the standard print preview user control. What should you do?
You are creating the printing components of an application for your company. A security requirement states that users can choose only local printers attached to their computers. Browsing network printers is prohibited. You
need to disable a user's ability to browse the network for printers when using the PageSetup dialog box. What should you do?
Your law firm uses a custom application to create and print legal documents. Currently, users can print any portion of a document that they want from the application by using the options in the Print dialog box.
This Print dialog box was implemented by using the PrintDialog component. New security and auditing rules state that the application must implement a business rule that requires users to print documents in their entirety. You need to modify the PrintDialog component named printDlg to enformce the business rule when a user prints.
You must implement this rule with the minimum amount of impact to users. What should you do?
You are creating a Windows Forms application that prints reports. The application uses the PrintDocument control to print the report and the PrintPreviewDialog control to preview reports as shown in the following code segment.
streamToPrint = new StreamReader("..\\..\\FilesToPrint.txt"); try {
PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage); PrintPreviewDialog ppd =New
PrintPreviewDialog();
ppd.Document = pd;
ppd.ShowDialog();
}
finally {
streamToPrint.Close();
}
When a report is printed by using the Print method on the PrintDocument class, the output is correct. When the report is previewed by using the Print Preview dialog box, the output is correct. However, when the report is
printed by using the Print button in the Print Preview dialog box, a single blank page is produced. You need to ensure that the output is correct when the Print button in the Print Preview dialog box is used.
What should you do?
The manager has told you to develop a Microsoft Windows Forms application which has printing capabilities. From which of the following base should you derive you class to create a class that will show you the required 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)
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 as the developer of Certkiller .com use a client computer named Certkiller -WS009 as developing collateral. You are busy creating an instance of the PrintPreviewControl class named graphicprintPreviewControl to allow the users in the Graphics department to preview their printed documents.
Which code segment is used to default the preview to a zoom level of 50 percent and avert text from appearing jagged?
You as the developer of Certkiller .com use a client computer named Certkiller -WS017 as developing collateral. You are using the PrintPreviewDialog class to permit theusers in the Finance department to have a
preview of there documents. You need to stop a viewed page in the document from being automatically resized when the dialog box represented by the PrintPreviewDialog instance is resized. What should you do to configure the PrintPreviewControl instance of the PrintPreviewDialog instance?