MailingLabel.CreateNewDocument 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);
abstract member CreateNewDocument : obj * obj * obj * obj * obj * obj * obj -> Microsoft.Office.Interop.Word.Document
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

Optional Object. The mailing label name.

Address
Object

Optional Object. The text for the mailing label.

AutoText
Object

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

ExtractAddress
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

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

PrintEPostageLabel
Object

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

Vertical
Object

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

Returns

Applies to