SftPrintPreview/OCX 1.0

SftPrintPreviewPrinter.GetPrintResolution Method

Softel vdm, Inc.

Returns the printing resolution.

Syntax       

VB.NET

object.GetPrintResolution(ByRef DPIX As Integer, ByRef DPIY As Integer)

VB

object.GetPrintResolution(DPIX As Long, DPIY As Long)

C#.NET

void object.GetPrintResolution(out int DPIX, out int DPIY);

VC++

HRESULT object->GetPrintResolution(long* DPIX, long* DPIY);

C

HRESULT object->raw_GetPrintResolution(long* DPIX, long* DPIY);

Delphi

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

object

A SftPrintPreviewPrinter object.

DPIX

Returns the number of pixels per inch horizontally.

DPIY

Returns the number of pixels per inch vertically.

Comments

The GetPrintResolution method returns the printing resolution for the current printer and the current printer settings.

Printer.SetPrintResolution can be used to select a printing resolution.

Printer.Resolution and Printer.ResolutionCount return information about the available printing resolutions.


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