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 |