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
public short PrintQuality { get; set; }
public:
property short PrintQuality {
short get();
void set(short value);
}
member PrintQuality : int16 with get, set
Public Property PrintQuality As 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. 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()
See Also
Printer Class
Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 Namespace
4e434922-3709-49c6-a69d-38120ed72d7abc1bcb98-e13b-4c68-a514-045c042dbf367f9351ea-cb3e-4615-8f70-5a29c165c1a7
Return to top