Margin property (IEpnEnhancedOptions)

Visual Basic example

Visual C++ example

 

Syntax

MarginConstants Margin;

Overview

Refer to Using the OEM Version of ePrint.

Remarks

Gets or sets the margin to be used when printing using the enhanced printing options. Possible values are:

Value

Meaning

MARGIN_NONE

Do not use margins. This is the default value.

MARGIN_TINY

Use tiny margin.

MARGIN_SMALL

Use small margin.

MARGIN_MEDIUM

Use medium margin.

MARGIN_LARGE

Use large margin.

MARGIN_PRINTERDEFAULT

Use the printer's default margin.

MARGIN_CUSTOM

Use custom margin. The user should pass a value to the MarginOffset property. This value represents the percent of the margin space to the paper space. For example, if 80 is passed to MarginOffset, then the margins will be:

Left Margin = 40% of the paper width.
Right Margin = 40% of the paper width.
(Left + Right = 80%)

Top Margin = 40% of the paper height.
Bottom Margin = 40% of the paper height.
(Top + Left = 80%)

Support for Basic functionality must be unlocked by calling the UnlockSupport method before using this method.

The following methods update this property:

GetDefaultEnhancedOptions method

GetPrinterBatchPrintersList method

To update the enhanced printing options of a batch printer found in the batch printers list, set this property and the other IEpnEnhancedOptions properties accessed by the EnhancedOptions property (IEpnBatchPrinterInfo) and call the SetPrinterBatchPrintersList method.

See Also

Elements:

VerticalAlign property, HorizontalAlign property, Layout property, Ordering property, Borders property, PrintingMethod property, GutterUnit property, Gutter property, EnhancedOptions property, GutterInside property, MarginOffset property, Repeat property, BestFit property, RightToLeft property, GutterWidth property, GetDefaultEnhancedOptions method, GetPrinterBatchPrintersList method, SetPrinterBatchPrintersList method

Topics:

ePrint: Enhanced Printing