Partager via


MailingLabel.CreateNewDocument Method

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.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function CreateNewDocument ( _
    ByRef Name As Object, _
    ByRef Address As Object, _
    ByRef AutoText As Object, _
    ByRef ExtractAddress As Object, _
    ByRef LaserTray As Object, _
    ByRef PrintEPostageLabel As Object, _
    ByRef Vertical As Object _
) As Document
'Usage
Dim instance As MailingLabel
Dim Name As Object
Dim Address As Object
Dim AutoText As Object
Dim ExtractAddress As Object
Dim LaserTray As Object
Dim PrintEPostageLabel As Object
Dim Vertical As Object
Dim returnValue As Document

returnValue = instance.CreateNewDocument(Name, _
    Address, AutoText, ExtractAddress, _
    LaserTray, PrintEPostageLabel, Vertical)
Document CreateNewDocument(
    ref Object Name,
    ref Object Address,
    ref Object AutoText,
    ref Object ExtractAddress,
    ref Object LaserTray,
    ref Object PrintEPostageLabel,
    ref Object Vertical
)

Parameters

  • Name
    Type: System.Object%
    Optional Object. The mailing label name.
  • Address
    Type: System.Object%
    Optional Object. The text for the mailing label.
  • AutoText
    Type: System.Object%
    Optional Object. The name of the AutoText entry that includes the mailing label text.
  • ExtractAddress
    Type: System.Object%
    Optional Object. True to use the address text marked by the user-defined bookmark named "EnvelopeAddress" instead of using the Address argument.
  • PrintEPostageLabel
    Type: System.Object%
    Optional Object. True to print postage using an Internet e-postage vendor.
  • Vertical
    Type: System.Object%
    Optional Object. True formats text vertically on the label. Used for Asian-language mailing labels.

Return Value

Type: Microsoft.Office.Interop.Word.Document

See Also

Reference

MailingLabel Interface

MailingLabel Members

Microsoft.Office.Interop.Word Namespace