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
- DateFormat
Type: System.String
- IncludeHeaderFooter
Type: System.Boolean
- PageDesign
Type: System.String
- LetterStyle
Type: Microsoft.Office.Interop.Word.WdLetterStyle
- Letterhead
Type: System.Boolean
- LetterheadLocation
Type: Microsoft.Office.Interop.Word.WdLetterheadLocation
- LetterheadSize
Type: System.Single
- RecipientName
Type: System.String
- RecipientAddress
Type: System.String
- Salutation
Type: System.String
- SalutationType
Type: Microsoft.Office.Interop.Word.WdSalutationType
- RecipientReference
Type: System.String
- MailingInstructions
Type: System.String
- AttentionLine
Type: System.String
- Subject
Type: System.String
- CCList
Type: System.String
- ReturnAddress
Type: System.String
- SenderName
Type: System.String
- Closing
Type: System.String
- SenderCompany
Type: System.String
- SenderJobTitle
Type: System.String
- SenderInitials
Type: System.String
- EnclosureNumber
Type: System.Int32
- InfoBlock
Type: System.Object%
- RecipientCode
Type: System.Object%
- RecipientGender
Type: System.Object%
- ReturnAddressShortForm
Type: System.Object%
- SenderCity
Type: System.Object%
- SenderCode
Type: System.Object%
- SenderGender
Type: System.Object%
- SenderReference
Type: System.Object%
Return Value
Type: Microsoft.Office.Interop.Word.LetterContent