_Document.CreateLetterContent method
Creates and returns a LetterContent object based on the specified letter elements.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
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
Required String. The date for the letter.
- IncludeHeaderFooter
- Type: System.Boolean
Required Boolean. True to include the header and footer from the page design template.
- PageDesign
- Type: System.String
Required String. The name of the template attached to the document.
- LetterStyle
- Type: Microsoft.Office.Interop.Word.WdLetterStyle
Required WdLetterStyle. The document layout.
- Letterhead
- Type: System.Boolean
Required Boolean. True to reserve space for a preprinted letterhead.
- LetterheadLocation
- Type: Microsoft.Office.Interop.Word.WdLetterheadLocation
Required WdLetterheadLocation. The location of the preprinted letterhead.
- LetterheadSize
- Type: System.Single
Required Single. The amount of space (in points) to be reserved for a preprinted letterhead.
- RecipientName
- Type: System.String
Required String. The name of the person who'll be receiving the letter.
- RecipientAddress
- Type: System.String
Required String. The mailing address of the person who'll be receiving the letter.
- Salutation
- Type: System.String
Required String. The salutation text for the letter.
- SalutationType
- Type: Microsoft.Office.Interop.Word.WdSalutationType
Required WdSalutationType. The salutation type for the letter.
- RecipientReference
- Type: System.String
Required String. The reference line text for the letter (for example, "In reply to:").
- MailingInstructions
- Type: System.String
Required String. The mailing instruction text for the letter (for example, "Certified Mail").
- AttentionLine
- Type: System.String
Required String. The attention line text for the letter (for example, "Attention:").
- Subject
- Type: System.String
Required String. The subject text for the specified letter.
- CCList
- Type: System.String
Required String. The names of the carbon copy (CC) recipients for the letter.
- ReturnAddress
- Type: System.String
Required String. The text of the return mailing address for the letter.
- SenderName
- Type: System.String
Required String. The name of the person sending the letter.
- Closing
- Type: System.String
Required String. The closing text for the letter.
- SenderCompany
- Type: System.String
Required String. The company name of the person creating the letter.
- SenderJobTitle
- Type: System.String
Required String. The job title of the person creating the letter.
- SenderInitials
- Type: System.String
Required String. The initials of the person creating the letter.
- EnclosureNumber
- Type: System.Int32
Required Integer. The number of enclosures for the letter.
- InfoBlock
- Type: System.Object
Optional Object. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.
- RecipientCode
- Type: System.Object
Optional Object. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.
- RecipientGender
- Type: System.Object
Optional Object. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.
- ReturnAddressShortForm
- Type: System.Object
Optional Object. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.
- SenderCity
- Type: System.Object
Optional Object. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.
- SenderCode
- Type: System.Object
Optional Object. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.
- SenderGender
- Type: System.Object
Optional Object. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.
- SenderReference
- Type: System.Object
Optional Object. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.