Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreviewPrinter.FormWidth Method

Returns the width of the paper.

Syntax

VB.NETValue = object.FormWidth(ByVal Index As Integer) As Integer
VBValue = object.FormWidth(ByVal Index As Integer) As Integer
C#.NETint Value = object.FormWidth(int Index);
VC++int* Value = object->FormWidth(int Index);
CHRESULT object->raw_FormWidth(int Index, int* Value);

object

A SftPrintPreviewPrinter object.

Index

The zero-based index of the requested paper size.

Value

Returns the width of the paper in pixels (printer units, based on current printer resolution Printer.GetPrintResolution).

Comments

The FormWidth method returns the width of the paper.

The total number of available paper sizes for the current printer can be retrieved using the Printer.FormCount property.

The Printer.Form property can be used to retrieve the name of the form specified by Index.

The Printer.PaperSize and Printer.PaperSizeValue properties are used to define the paper size for the current printer.

See Also SftPrintPreviewPrinter Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.