MailingLabel.CreateNewDocumentByID(Object, Object, Object, Object, Object, Object, Object) MailingLabel.CreateNewDocumentByID(Object, Object, Object, Object, Object, Object, Object) Method

Definition

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.

public Microsoft.Office.Interop.Word.Document CreateNewDocumentByID (ref object LabelID, ref object Address, ref object AutoText, ref object ExtractAddress, ref object LaserTray, ref object PrintEPostageLabel, ref object Vertical);
Public Function CreateNewDocumentByID (Optional ByRef LabelID As Object, Optional ByRef Address As Object, Optional ByRef AutoText As Object, Optional ByRef ExtractAddress As Object, Optional ByRef LaserTray As Object, Optional ByRef PrintEPostageLabel As Object, Optional ByRef Vertical As Object) As Document
Parameters
LabelID
Object Object

The mailing label identification.

Address
Object Object

The text for the mailing label.

AutoText
Object Object

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

ExtractAddress
Object Object

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

LaserTray
Object Object

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

PrintEPostageLabel
Object Object

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

Vertical
Object Object

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

Returns

Applies to