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
ClientAreaOnly

Uses a new implementation to print the currently visible client area.

CompatibleModeClientAreaOnly

Uses the compatible printing implementation to print the currently visible client area.

CompatibleModeFullWindow

Uses the compatible printing implementation to print the currently visible form. This includes the title bar, scroll bars, and border.

FullWindow

Uses a new implementation to print the currently visible form. This includes the title bar, scroll bars, and border.

Scrollable

Uses 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.

Return to top
Show: