SftPrintPreview/OCX 1.0

SftPrintPreviewPrinter.SetPrintResolution Method

Softel vdm, Inc.

Defines the printing resolution.

Syntax       

VB.NET

object.SetPrintResolution(ByVal DPIX As Integer, ByVal DPIY As Integer)

VB

object.SetPrintResolution(ByVal DPIX As Long, ByVal DPIY As Long)

C#.NET

void object.SetPrintResolution(int DPIX, int DPIY);

VC++

HRESULT object->SetPrintResolution(long DPIX, long DPIY);

C

HRESULT object->raw_SetPrintResolution(long DPIX, long DPIY);

Delphi

procedure object.SetPrintResolution(DPIX : Integer, DPIY : Integer);

object

A SftPrintPreviewPrinter object.

DPIX

Defines the number of pixels per inch horizontally.

DPIY

Defines the number of pixels per inch vertically.

Comments

The SetPrintResolution method defines the printing resolution.

The Printer.Resolution method and Printer.ResolutionCount property can be used to list exact, pixel-based resolutions.

The combination of DPIX and DPIY must be a valid combination as returned by a call to the Printer.Resolution method.


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