Explain how to use the PrintPreviewDialog control to display a preview of a printed document before it is printed.

1 Answer

Answer :

You display a preview of a printed document with the PrintPreviewDialog control by first setting the PrintDocument property of the PrintPreviewDialog instance to the PrintDocument you want to preview, then by calling the PrintPreviewDialog.Show command to display the dialog box. 

Related questions

Description : What is the use of sections in a word document: a) To divide the document into parts so that each part may be independently printed when the print command is given. b) To divide the document into ... document into parts and then allow formatting of each part the way you want. d) None of The Above

Last Answer : To vary the layout of a document within a page or between pages by dividing the document into parts and then allow formatting of each part the way you want.

Description : Suppose you have columns of data that span more than one printed page. How can you automatically print the column headings on each page? 1) Click Page Setup on the File menu, click the Sheet tab, ... Page Setup on the File menu, click the Sheet tab, and make a selection under the Print heading

Last Answer : 1) Click Page Setup on the File menu, click the Sheet tab, and enter the row that contains these column

Description : Which among the following views in MS-Word can not display graphics: a) Printer Preview b) Page Layout View c) Normal View d) None of The Above

Last Answer : c) Normal View

Description : Briefly describe how to use the PrintDocument component to print a document. Discuss maintaining correct line spacing and multipage documents.

Last Answer : The PrintDocument class exposes the Print method, which raises the PrintPage event. Code to render printed items to the printer should be placed in the PrintPage event handler. The PrintPage event ... been printed, you must incorporate all logic for printing multiple pages into your event handler.

Description : Which of the following is incorrect: a) Print Preview - Displays what the document will look like when you print it b) Save - Saves the active document to a specified location c) Open - Displays the open dialog box so that you can retrieve an existing document d) None of These

Last Answer : d) None of These

Description : ____________Introduced laser 'preview distance control' A Mitsubishi Diamante B BMW C Toyota D Mercedes

Last Answer : A Mitsubishi Diamante

Description : Describe how to create a form or control with a nonrectangular shape.

Last Answer : Set the Region property of the form or control to a Region object that contains the irregular shape. You can create a Region object from a GraphicsPath object.

Description : Describe the role of the LicenseProvider in control licensing.

Last Answer : The LicenseProvider controls license validation and grants run-time licenses to validly licensed components. The LicenseManager.Validate method checks for an available license file and checks ... of LicenseProvider. You specify which LicenseProvider to use by applying the LicenseProviderAttribute. 

Description : Describe in general terms how to add a control to a form at run time.

Last Answer : You must first declare and instantiate a new instance of the control. Then, you must add the control to the form�s Controls collection. Once the control has been added to the Controls collection, you must manually set properties that govern the control�s position and appearance.

Description : Can you increment multiple variables in a for loop control?

Last Answer : Yes – e.g. for (int i = 1; j = 2;i

Description : Define what is the difference between Custom Control and User Control?

Last Answer : Custom Controls have compiled the code (DLLs), easier to use, difficult to create, and can be placed in toolbox. Drag and Drop controls. Attributes can be set visually at design time. Can be ... the toolbox and dragged - dropped from it. A User Control is shared among the single application files.

Description : ……….. option is used to display a document before printing. -Technology

Last Answer : Print Previewoption is used to display a document before printing.

Description : Do you need to instantiate a class before accessing a Shared (static) member? Why or why not?

Last Answer : Because a Shared (static) member belongs to the type rather than to any instance of the type, you can access the member without first creating an instance of the type.

Description : Ms. Matthews is printing posters of her students' artwork. Since the images will be printed, they will need: A. a higher resolution for better print quality. B. a lower resolution for smaller ... a higher resolution to display on a monitor. D. a lower resolution in order to download faster.

Last Answer : A. a higher resolution for better print quality.

Description : ……………. means that a printed document is exactly a copy of what you see on screen. -Technology

Last Answer : WYSIWYGmeans that a printed document is exactly a copy of what you see on screen.

Description : The entire Word document can be printed by choosing Microsoft Office button —> Print and OK. -Technology

Last Answer : TrueSteps for printing the document is Microsoft Office button —> Print and OK.

Description : A ___________ is used to create a digital representation of a printed document or photograph. A. Video Digitizer B. Scanner C. Monitor D. None of the Above

Last Answer : B. Scanner

Description : An Act, order or notification of the State Government may be proved by (a) Oral evidence (b) Journals publishing those documents (c) The records of the departments, certified by the heads of the dept or by  any document purporting to be printed by order of the Government (d) None of these

Last Answer : (c) The records of the departments, certified by the heads of the dept or by  any document purporting to be printed by order of the Government

Description : Mark the correct option a) Documents means any matter expressed or described upon any substance b  means of letter, figures or marks. b) Words printed, lithographed or photographed are documents c) A ... d) An inscription on a metal plate or stone and caricature are documents. e) All the above

Last Answer : e) All the above

Description : Why are headers and footers used in the document: a) To mark the starting and ending of the page b) To allow page headers & footers to appear on document when it is printed c) To enhance the overall appearance of the document d) Each page of word must have header & footer. e) None of The Above

Last Answer : b) To allow page headers & footers to appear on document when it is printed

Description : What is the purpose of headers and footers used in document: a) To enhance the overall appearance of the document b) To mark the starting and ending of a page c) To allow page headers and footers to appear on document when it is printed d) None of The Above

Last Answer : c) To allow page headers and footers to appear on document when it is printed

Description : .............. means that a printed document will appear exactly as it does on-screen A. Layout B. Publish C. Clip art D. WYSIWYG

Last Answer : C. Clip art

Description : Explain how to use the HelpProvider component to provide help for UI elements.

Last Answer : You can provide either a HelpString or a help topic for UI elements with the HelpProvider. The HelpProvider provides HelpString, HelpKeyWord, and HelpNavigator properties for each control on the form. If ... particular element is displayed when the element has the focus and the F1 key is pressed.

Description : Explain how to use the Begin and End methods on a Web Service to make an asynchronous method call.

Last Answer : Every public Web method on a Web Service can be called either synchronously or asynchronously. To make an asynchronous call to a Web method, you call the method named Begin, where is the name of ... returned by Begin. This will allow you to retrieve the actual data returned by the Web method.

Description : Explain why you might use enums and constants instead of their associated literal values.

Last Answer : Enums and constants make code easier to read and maintain by substituting human-legible tokens for frequently used constant values.

Description : Explain how to retrieve information from the configuration file at run time. How would you store information in the configuration file at design time?

Last Answer : You must first create an instance of AppSettingsReader to read the configuration file. You can then call the GetValue method to read values represented in the configuration file. To add configuration ... used to retrieve the entry. The value can be changed between executions of the application.

Description : Explain the difference between Globalization and Localization.

Last Answer : Globalization refers to the application of culture-specific format to existing data. Localization refers to providing new culture-specific resources and retrieving the appropriate resources based on the culture setting. 

Description : Explain how to convert data in legacy code page formats to the Unicode format.

Last Answer : You can use the Encoding.Convert method to convert data between encoding types. This method requires instances of both encoding types and an array of bytes that represents the data to be converted. ... GetBytes method and can convert an array of bytes back to chars with the Encoding.GetChars method.

Description : Describe an abstract class and explain when one might be useful.

Last Answer : An abstract class is a class that cannot be instantiated but must be inherited. It can contain both implemented methods and abstract methods, which must be implemented in an inheriting class. ... common interface for other methods, and leave more detailed implementation up to the inheriting class.

Description : Briefly explain encapsulation and why it is important in object-oriented - programming.

Last Answer : Encapsulation is the principle that all of the data and functionality required by an object be contained by that object. This allows objects to exist as independent, interchangeable units of functionality without maintaining dependencies on other units of code.

Description : Briefly explain how to convert a string representation of a number to a numeric type, such as an Integer or a Double.

Last Answer : All numeric data types have a Parse method that accepts a string parameter and returns the value represented by that string cast to the appropriate data type. You can use the Parse method of each data type to convert strings to that type.

Description : Explain what a delegate is and how one works. 

Last Answer : A delegate acts like a strongly typed function pointer. Delegates can invoke the methods that they reference without making explicit calls to those methods.

Description : Explain how properties differ from fields. Why would you expose public data through properties instead of fields?

Last Answer : Properties allow validation code to execute when values are accessed or changed. This allows you to impose some measure of control over when and how values are read or changed. Fields cannot perform validation when being read or set.

Description : Explain when a type conversion will undergo an implicit cast and when you must perform an explicit cast. What are the dangers associated with explicit casts?

Last Answer : Types can be implicitly converted when the conversion can always take place without any potential loss of data. When a potential loss of data is possible, an explicit cast is required. If an explicit cast is improperly performed, a loss of data precision can result, or an exception can be thrown.

Description : Explain when you might implement a shortcut menu instead of a main menu.

Last Answer : If every possible option is exposed on a main menu, the menu can become busy and hard to use. Shortcut menus allow less frequently used options to be exposed only in situations where they are likely to be used.

Description : Briefly explain the difference between Public (public), Friend (internal), and Private (private) access levels as they apply to user-defined types and members.

Last Answer : In user-defined types, Public (public) classes can be instantiated by any element of the application. Friend (internal) classes can be instantiated only by members of the same assembly, and Private ( ... the same assembly, and Private (private) members can be accessed only from within the type. 

Description : Explain what constructors and destructors are and describe what they are used for.

Last Answer : The constructor is the method that initializes a class or structure and is run when a type is first instantiated. It is used to set default values and perform other tasks required by the class. ... reclaimed by garbage collection. It contains any code that is required for cleanup of the object. 

Description : Briefly explain what is meant by a reference type and a value type.

Last Answer : A value type holds all of the data represented by the variable within the variable itself. A reference type contains a reference to a memory address that holds the data instead of the actual data itself. 

Description : Explain ACID rule of thumb for transactions.

Last Answer : A transaction must be: 1. Atomic - it is one unit of work and does not dependent on previous and following transactions. 2. Consistent - data is either committed or roll back, no in-between ... . Durable - the values persist if the data had been committed even if the system crashes right after. 

Description : Explain the three services model commonly know as a three-tier application.

Last Answer : Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources).

Description : Explain sizeof and typeof.

Last Answer : typeof obtains the System.Type object for a type and sizeof obtains the size of a type.

Description : Explain ACID rule of thumb for transactions.

Last Answer : A transaction must be: 1. Atomic - it is one unit of work and does not dependent on previous and following transactions. 2. Consistent - data is either committed or roll back, no in-between ... 4. Durable - the values persist if the data had been committed even if the system crashes right after.

Description : Explain the three services model commonly know as a three-tier application.

Last Answer : Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources). 

Description : Explain the “static” keyword in C#?

Last Answer : “Static” keyword can be used for declaring a static member. If the class is made static then all the members of the class are also made static. If the variable is made static then it will have a single instance and the value change is updated in this instance.

Description : Explain namespaces in C#?

Last Answer : Namespaces are containers for the classes. We will use namespaces for grouping the related classes in C#. “Using” keyword can be used for using the namespace in other namespaces.

Description : Explain sealed class in C#?

Last Answer : A sealed class is used to prevent the class from being inherited from other classes. So “sealed” modifier also can be used with methods to avoid the methods to override in the child classes.

Description : I want to see the tracked changes in my document. How do I turn On the display of tracked changes? -Technology

Last Answer : In MS-Word 2007, on the Review tab, use the little menus in the Tracking group. Final Showing Markup or Original Showing Markup will show what changes you have made. But check the selected items on the Show Markup menu to be sure that Word is showing you the right things.

Description : WYSIWYG - describes the display of a document on screen as it will actually print: (A) What you state is what you get (B) What you see is what you get (C) What you save is what you get (D) What you suggest is what you get

Last Answer : (B) What you see is what you get

Description : In .Net. which method is used to display a dialog box in the document window?  A) prompt() and alert() B) alert() and confirm C) confirm() D) none of the above

Last Answer : In .Net. which method is used to display a dialog box in the document window?  prompt() and alert()

Description : Describe how to use code to retrieve resources at run time.

Last Answer : You must first create an instance of the ResourceManager class that is associated with the assembly that contains the desired resource. You can then use the GetString method to retrieve string resources or the GetObject method to retrieve object resources.