SftPrintPreview/OCX 1.0

SftPrintPreviewPrinter.Resolution Method

Softel vdm, Inc.

Returns the supported printing resolutions.

Syntax       

VB.NET

object.Resolution(ByVal Index As Integer, ByRef DPIX As Integer, ByRef DPIY As Integer)

VB

object.Resolution(ByVal Index As Integer, DPIX As Long, DPIY As Long)

C#.NET

void object.Resolution(int Index, out int DPIX, out int DPIY);

VC++

HRESULT object->Resolution(int Index, long* DPIX, long* DPIY);

C

HRESULT object->raw_Resolution(int Index, long* DPIX, long* DPIY);

Delphi

procedure object.Resolution(Index : Integer, out DPIX : Integer, out DPIY : Integer);

object

A SftPrintPreviewPrinter object.

Index

The zero-based index of the requested resolution.

DPIX

Returns the number of pixels per inch horizontally.

DPIY

Returns the number of pixels per inch vertically.

Comments

The Resolution method returns the supported printing resolutions.

The total number of available resolutions for the current printer can be retrieved using the Printer.ResolutionCount property.

An exact resolution can be selected using the Printer.SetPrintResolution method.


Feedback / comments / error reports for this topic
© 2004 - Softel vdm, Inc. - www.windowscontrols.com