This documentation is archived and is not being maintained.

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.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

public enum PrintOption

Member nameDescription
ClientAreaOnlyUses a new implementation to print the currently visible client area.
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.
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.

Show: