DocumentClass.CreateLetterContent Method

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

Syntax

'Declaration
Public Overridable Function CreateLetterContent ( _
    DateFormat As String, _
    IncludeHeaderFooter As Boolean, _
    PageDesign As String, _
    LetterStyle As WdLetterStyle, _
    Letterhead As Boolean, _
    LetterheadLocation As WdLetterheadLocation, _
    LetterheadSize As Single, _
    RecipientName As String, _
    RecipientAddress As String, _
    Salutation As String, _
    SalutationType As WdSalutationType, _
    RecipientReference As String, _
    MailingInstructions As String, _
    AttentionLine As String, _
    Subject As String, _
    CCList As String, _
    ReturnAddress As String, _
    SenderName As String, _
    Closing As String, _
    SenderCompany As String, _
    SenderJobTitle As String, _
    SenderInitials As String, _
    EnclosureNumber As Integer, _
    ByRef InfoBlock As Object, _
    ByRef RecipientCode As Object, _
    ByRef RecipientGender As Object, _
    ByRef ReturnAddressShortForm As Object, _
    ByRef SenderCity As Object, _
    ByRef SenderCode As Object, _
    ByRef SenderGender As Object, _
    ByRef SenderReference As Object _
) As LetterContent
'Usage
Dim instance As DocumentClass
Dim DateFormat As String
Dim IncludeHeaderFooter As Boolean
Dim PageDesign As String
Dim LetterStyle As WdLetterStyle
Dim Letterhead As Boolean
Dim LetterheadLocation As WdLetterheadLocation
Dim LetterheadSize As Single
Dim RecipientName As String
Dim RecipientAddress As String
Dim Salutation As String
Dim SalutationType As WdSalutationType
Dim RecipientReference As String
Dim MailingInstructions As String
Dim AttentionLine As String
Dim Subject As String
Dim CCList As String
Dim ReturnAddress As String
Dim SenderName As String
Dim Closing As String
Dim SenderCompany As String
Dim SenderJobTitle As String
Dim SenderInitials As String
Dim EnclosureNumber As Integer
Dim InfoBlock As Object
Dim RecipientCode As Object
Dim RecipientGender As Object
Dim ReturnAddressShortForm As Object
Dim SenderCity As Object
Dim SenderCode As Object
Dim SenderGender As Object
Dim SenderReference As Object
Dim returnValue As LetterContent

returnValue = instance.CreateLetterContent(DateFormat, _
    IncludeHeaderFooter, PageDesign, _
    LetterStyle, Letterhead, LetterheadLocation, _
    LetterheadSize, RecipientName, RecipientAddress, _
    Salutation, SalutationType, RecipientReference, _
    MailingInstructions, AttentionLine, _
    Subject, CCList, ReturnAddress, SenderName, _
    Closing, SenderCompany, SenderJobTitle, _
    SenderInitials, EnclosureNumber, _
    InfoBlock, RecipientCode, RecipientGender, _
    ReturnAddressShortForm, SenderCity, _
    SenderCode, SenderGender, SenderReference)
public virtual LetterContent CreateLetterContent(
    string DateFormat,
    bool IncludeHeaderFooter,
    string PageDesign,
    WdLetterStyle LetterStyle,
    bool Letterhead,
    WdLetterheadLocation LetterheadLocation,
    float LetterheadSize,
    string RecipientName,
    string RecipientAddress,
    string Salutation,
    WdSalutationType SalutationType,
    string RecipientReference,
    string MailingInstructions,
    string AttentionLine,
    string Subject,
    string CCList,
    string ReturnAddress,
    string SenderName,
    string Closing,
    string SenderCompany,
    string SenderJobTitle,
    string SenderInitials,
    int EnclosureNumber,
    ref Object InfoBlock,
    ref Object RecipientCode,
    ref Object RecipientGender,
    ref Object ReturnAddressShortForm,
    ref Object SenderCity,
    ref Object SenderCode,
    ref Object SenderGender,
    ref Object SenderReference
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Word.LetterContent

Implements

_Document.CreateLetterContent(String, Boolean, String, WdLetterStyle, Boolean, WdLetterheadLocation, Single, String, String, String, WdSalutationType, String, String, String, String, String, String, String, String, String, String, String, Int32, Object%, Object%, Object%, Object%, Object%, Object%, Object%, Object%)

See Also

Reference

DocumentClass Class

DocumentClass Members

Microsoft.Office.Interop.Word Namespace