Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

PrintForm.PrintOption Enumeration

The PrintOption enumeration specifies options for the Print method of a PrintForm component.

Namespace:  Microsoft.VisualBasic.PowerPacks.Printing
Assembly:  Microsoft.VisualBasic.PowerPacks (in Microsoft.VisualBasic.PowerPacks.dll)

public enum PrintOption

Member nameDescription
CompatibleModeClientAreaOnlyUses the compatible printing implementation to print the currently visible client area.
CompatibleModeFullWindowUses the compatible printing implementation to print the currently visible form. This includes the title bar, scroll bars, and border.
ClientAreaOnlyUses a new implementation to print the currently visible client area.
FullWindowUses a new implementation to print the currently visible form. This includes the title bar, scroll bars, and border.
ScrollableUses a new implementation to print the full client area, even if part of it is scrolled out of view.

If you want to include the title bar, scroll bars, and border in the printed image, choose either CompatibleModeFullWindow or FullWindow.

If you want to print the form at its designed size, choose Scrollable.

The Print method uses one of two underlying implementations for printing. When PrintOption is set to CompatibleModeClientAreaOnly or CompatibleModeFullWindow, an implementation that is backward compatible with the Visual Basic 6.0 PrintForm method is used. When this parameter is set to ClientAreaOnly, FullWindow or Scrollable, a different implementation that doesn't require the form to have focus is used.

Community Additions

ADD
Show:
© 2015 Microsoft