Partager via


MailingLabel.CreateNewDocumentByID 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 CreateNewDocumentByID ( _
    ByRef LabelID 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 LabelID 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.CreateNewDocumentByID(LabelID, _
    Address, AutoText, ExtractAddress, _
    LaserTray, PrintEPostageLabel, Vertical)
Document CreateNewDocumentByID(
    ref Object LabelID,
    ref Object Address,
    ref Object AutoText,
    ref Object ExtractAddress,
    ref Object LaserTray,
    ref Object PrintEPostageLabel,
    ref Object Vertical
)

Parameters

  • AutoText
    Type: System.Object%
    The name of the AutoText entry that includes the mailing label text.
  • ExtractAddress
    Type: System.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%
    True to print postage using an Internet e-postage vendor.
  • Vertical
    Type: System.Object%
    True formats text vertically on the label. Used for Asian-language mailing labels.

Return Value

Type: Microsoft.Office.Interop.Word.Document
_Document

See Also

Reference

MailingLabel Interface

MailingLabel Members

Microsoft.Office.Interop.Word Namespace