MailingLabel.CreateNewDocument(Object, Object, Object, Object, Object, Object, Object) MailingLabel.CreateNewDocument(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 CreateNewDocument (ref object Name, ref object Address, ref object AutoText, ref object ExtractAddress, ref object LaserTray, ref object PrintEPostageLabel, ref object Vertical);
Public Function CreateNewDocument (Optional ByRef Name 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
Name
Object Object

Optional Object. The mailing label name.

Address
Object Object

Optional Object. The text for the mailing label.

AutoText
Object Object

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

ExtractAddress
Object Object

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

LaserTray
Object Object

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

PrintEPostageLabel
Object Object

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

Vertical
Object Object

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

Returns

Applies to