Partager via


MailingLabel.CreateNewDocumentByID Method (Word)

Creates a new label document using either the default label options or ones that you specify. Returns a Document object that represents the new document.

Syntax

expression .CreateNewDocumentByID(LabelID, Address, AutoText, ExtractAddress, LaserTray, PrintEPostageLabel, Vertical)

expression An expression that returns a MailingLabel object.

Parameters

Name

Required/Optional

Data Type

Description

LabelID

Optional

Variant

The mailing label identification.

Address

Optional

Variant

The text for the mailing label.

AutoText

Optional

Variant

The name of the AutoText entry that includes the mailing label text.

ExtractAddress

Optional

Variant

True to use the address text marked by the user-defined bookmark named "EnvelopeAddress" instead of using the Address argument.

LaserTray

Optional

Variant

The laser printer tray. Can be one of the WdPaperTray constants.

PrintEPostageLabel

Optional

Variant

True to print postage using an Internet e-postage vendor.

Vertical

Optional

Variant

True formats text vertically on the label. Used for Asian-language mailing labels.

Return Value

Document

See Also

Concepts

MailingLabel Object Members

MailingLabel Object