Udostępnij za pośrednictwem


Printer.PrintQuality Property

Gets or sets a value that indicates the printer resolution.

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

Syntax

'Declaration
Public Property PrintQuality As Short
    Get
    Set
public short PrintQuality { get; set; }
public:
property short PrintQuality {
    short get ();
    void set (short value);
}
member PrintQuality : int16 with get, set
function get PrintQuality () : short
function set PrintQuality (value : short)

Property Value

Type: System.Int16
Returns a Short.

Remarks

The default value depends on the printer driver and the current settings of the printer. The effects of these settings vary depending on the printer and the printer driver. On some printers, some or all of the settings produce the same result.

If you set this property after you call the Print, Circle, Line, or PSet methods on a new page, a run-time exception occurs.

The following table lists the PrinterObjectConstants values that are valid for the PrintQuality property.

Constant

Value

Description

vbPRPQDraft

-1

Draft resolution

vbPRPQLow

-2

Low resolution

vbPRPQMedium

-3

Medium resolution

vbPRPQHigh

-4

High resolution

Note

Functions and objects in the Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2010. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Examples

The following example demonstrates how to set the PrintQuality property.

Dim pr As New Printer
Printer.PrintQuality = vbPRPQHigh
Printer.Print("Printing in high quality mode")
Printer.EndDoc()

.NET Framework Security

See Also

Reference

Printer Class

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Namespace

Other Resources

Printer Compatibility Library

How to: Fix Upgrade Errors by Using the Printer Compatibility Library (Visual Basic)

Deploying Applications That Reference the Printer Compatibility Library