![]() ![]() The implementation is determined by the PrintOption parameter. The Print method uses one of two underlying implementations for printing. If you want to print the form at its designed size, set the PrintOption parameter to Scrollable. ![]() If, however, part of the form has been moved off the edge of the screen, the form will still be printed as if it were completely visible. If a user has resized the form at run time, it will be printed as currently visible on screen. If you want to include the title bar, scroll bars, and border in the printed image, set the PrintOption parameter to either CompatibleModeFullWindow or FullWindow.īy default, only the currently visible part of the client area or form is printed. To avoid this, call the Focus method of the form before you call Print.īy default, only the client area of the form is printed. When the PrintOption parameter is set to either CompatibleModeClientAreaOnly or CompatibleModeFullWindow, the form specified by the Form property must have focus. If PrintOption is set to ClientAreaOnly, FullWindow, or Scrollable, any form in your application may be specified, even if it does not have focus. If the form specified in the printForm parameter does not have focus, and the PrintOption parameter is set to either CompatibleModeClientAreaOnly or CompatibleModeFullWindow, an exception is raised. This includes any text or graphics drawn with Graphics methods. The Print method prints all visible objects on a form. PrintOption:PrintForm.PrintOption -> unitĪ PrintForm.PrintOption enumeration that determines how the form will be printed. Namespace: Assembly: (in .dll) Syntax public void Print( Sends an image of a Windows Form to the destination specified by the PrintAction property, specifying the form and printing options
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |