Partager via


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)

Syntax

'Declaration
Public Enumeration PrintOption
public enum PrintOption
public enum class PrintOption
type PrintOption
public enum PrintOption

Members

Member name Description
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.

Remarks

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.

See Also

Reference

Microsoft.VisualBasic.PowerPacks.Printing Namespace

Other Resources

PrintForm Component (Visual Basic)

How to: Print a Form by Using the PrintForm Component (Visual Basic)

How to: Print the Client Area of a Form (Visual Basic)

How to: Print Client and Non-Client Areas of a Form (Visual Basic)

How to: Print a Scrollable Form (Visual Basic)

Deploying Applications That Reference the PrintForm Component (Visual Basic)