This documentation is archived and is not being maintained.

DocumentClass.CreateLetterContent Method 

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
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
Dim documentClass1 As DocumentClass
returnValue = documentClass1.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(
	[In] string DateFormat, 
	[In] bool IncludeHeaderFooter, 
	[In] string PageDesign, 
	[In] WdLetterStyle LetterStyle, 
	[In] bool Letterhead, 
	[In] WdLetterheadLocation LetterheadLocation, 
	[In] float LetterheadSize, 
	[In] string RecipientName, 
	[In] string RecipientAddress, 
	[In] string Salutation, 
	[In] WdSalutationType SalutationType, 
	[In] string RecipientReference, 
	[In] string MailingInstructions, 
	[In] string AttentionLine, 
	[In] string Subject, 
	[In] string CCList, 
	[In] string ReturnAddress, 
	[In] string SenderName, 
	[In] string Closing, 
	[In] string SenderCompany, 
	[In] string SenderJobTitle, 
	[In] string SenderInitials, 
	[In] int EnclosureNumber, 
	[In, Optional] ref object InfoBlock, 
	[In, Optional] ref object RecipientCode, 
	[In, Optional] ref object RecipientGender, 
	[In, Optional] ref object ReturnAddressShortForm, 
	[In, Optional] ref object SenderCity, 
	[In, Optional] ref object SenderCode, 
	[In, Optional] ref object SenderGender, 
	[In, Optional] ref object SenderReference
);
public LetterContent CreateLetterContent(
	/*in*/System.String DateFormat, 
	/*in*/boolean IncludeHeaderFooter, 
	/*in*/System.String PageDesign, 
	/*in*/WdLetterStyle LetterStyle, 
	/*in*/boolean Letterhead, 
	/*in*/WdLetterheadLocation LetterheadLocation, 
	/*in*/float LetterheadSize, 
	/*in*/System.String RecipientName, 
	/*in*/System.String RecipientAddress, 
	/*in*/System.String Salutation, 
	/*in*/WdSalutationType SalutationType, 
	/*in*/System.String RecipientReference, 
	/*in*/System.String MailingInstructions, 
	/*in*/System.String AttentionLine, 
	/*in*/System.String Subject, 
	/*in*/System.String CCList, 
	/*in*/System.String ReturnAddress, 
	/*in*/System.String SenderName, 
	/*in*/System.String Closing, 
	/*in*/System.String SenderCompany, 
	/*in*/System.String SenderJobTitle, 
	/*in*/System.String SenderInitials, 
	/*in*/int EnclosureNumber, 
	/*in*/System.Object InfoBlock, 
	/*in*/System.Object RecipientCode, 
	/*in*/System.Object RecipientGender, 
	/*in*/System.Object ReturnAddressShortForm, 
	/*in*/System.Object SenderCity, 
	/*in*/System.Object SenderCode, 
	/*in*/System.Object SenderGender, 
	/*in*/System.Object SenderReference
);
public function CreateLetterContent(
	 DateFormat : String, 
	 IncludeHeaderFooter : Boolean, 
	 PageDesign : String, 
	 LetterStyle : WdLetterStyle, 
	 Letterhead : Boolean, 
	 LetterheadLocation : WdLetterheadLocation, 
	 LetterheadSize : float, 
	 RecipientName : String, 
	 RecipientAddress : String, 
	 Salutation : String, 
	 SalutationType : WdSalutationType, 
	 RecipientReference : String, 
	 MailingInstructions : String, 
	 AttentionLine : String, 
	 Subject : String, 
	 CCList : String, 
	 ReturnAddress : String, 
	 SenderName : String, 
	 Closing : String, 
	 SenderCompany : String, 
	 SenderJobTitle : String, 
	 SenderInitials : String, 
	 EnclosureNumber : int, 
	 InfoBlock : Object, 
	 RecipientCode : Object, 
	 RecipientGender : Object, 
	 ReturnAddressShortForm : Object, 
	 SenderCity : Object, 
	 SenderCode : Object, 
	 SenderGender : Object, 
	 SenderReference : Object
) : LetterContent;

Parameters

DateFormat

This parameter is intended for internal use only.

IncludeHeaderFooter

This parameter is intended for internal use only.

PageDesign

This parameter is intended for internal use only.

LetterStyle

This parameter is intended for internal use only.

Letterhead

This parameter is intended for internal use only.

LetterheadLocation

This parameter is intended for internal use only.

LetterheadSize

This parameter is intended for internal use only.

RecipientName

This parameter is intended for internal use only.

RecipientAddress

This parameter is intended for internal use only.

Salutation

This parameter is intended for internal use only.

SalutationType

This parameter is intended for internal use only.

RecipientReference

This parameter is intended for internal use only.

MailingInstructions

This parameter is intended for internal use only.

AttentionLine

This parameter is intended for internal use only.

Subject

This parameter is intended for internal use only.

CCList

This parameter is intended for internal use only.

ReturnAddress

This parameter is intended for internal use only.

SenderName

This parameter is intended for internal use only.

Closing

This parameter is intended for internal use only.

SenderCompany

This parameter is intended for internal use only.

SenderJobTitle

This parameter is intended for internal use only.

SenderInitials

This parameter is intended for internal use only.

EnclosureNumber

This parameter is intended for internal use only.

InfoBlock

This parameter is intended for internal use only.

RecipientCode

This parameter is intended for internal use only.

RecipientGender

This parameter is intended for internal use only.

ReturnAddressShortForm

This parameter is intended for internal use only.

SenderCity

This parameter is intended for internal use only.

SenderCode

This parameter is intended for internal use only.

SenderGender

This parameter is intended for internal use only.

SenderReference

This parameter is intended for internal use only.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: