Exportieren (0) Drucken
Alle erweitern
AcceptAllRevisions Method
AcceptAllRevisionsShown Method
Activate Method
AddDocumentWorkspaceHeader Method
AddToFavorites Method
ApplyTheme Method
AutoFormat Method
AutoSummarize Method
CanCheckin Method
CheckConsistency Method
CheckGrammar Method
CheckIn Method
CheckNewSmartTags Method
CheckSpelling Method
Close Method
ClosePrintPreview Method
Compare Method
Compare2000 Method
Compare2002 Method
ComputeStatistics Method
ConvertNumbersToText Method
ConvertVietDoc Method
CopyStylesFromTemplate Method
CountNumberedItems Method
CreateLetterContent Method
DataForm Method
DeleteAllComments Method
DeleteAllCommentsShown Method
DeleteAllEditableRanges Method
DeleteAllInkAnnotations Method
DetectLanguage Method
EditionOptions Method
EndReview Method
FitToPages Method
FollowHyperlink Method
ForwardMailer Method
GetCrossReferenceItems Method
GetLetterContent Method
GoTo Method
MakeCompatibilityDefault Method
ManualHyphenation Method
Merge Method
Merge2000 Method
Post Method
PresentIt Method
PrintOut Method
PrintOut2000 Method
PrintOutOld Method
PrintPreview Method
Protect Method
Protect2002 Method
Range Method
RecheckSmartTags Method
Redo Method
RejectAllRevisions Method
RejectAllRevisionsShown Method
Reload Method
ReloadAs Method
RemoveDocumentWorkspaceHeader Method
RemoveLockedStyles Method
RemoveNumbers Method
RemoveSmartTags Method
RemoveTheme Method
Repaginate Method
Reply Method
ReplyAll Method
ReplyWithChanges Method
ResetFormFields Method
Route Method
RunAutoMacro Method
RunLetterWizard Method
Save Method
SaveAs Method
SaveAs2000 Method
sblt Method
Select Method
SelectAllEditableRanges Method
SelectNodes Method
SelectSingleNode Method
SendFax Method
SendFaxOverInternet Method
SendForReview Method
SendMail Method
SendMailer Method
SetDefaultTableStyle Method
SetLetterContent Method
SetPasswordEncryptionOptions Method
ToggleFormsDesign Method
TransformDocument Method
Undo Method
UndoClear Method
Unprotect Method
UpdateStyles Method
UpdateSummaryProperties Method
ViewCode Method
ViewPropertyBrowser Method
WebPagePreview Method
Erweitern Minimieren

_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)

'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 _Document1 As _Document
returnValue = _Document1.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)

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
);
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

Required String. The date for the letter.

IncludeHeaderFooter

Required Boolean. True to include the header and footer from the page design template.

PageDesign

Required String. The name of the template attached to the document.

LetterStyle

Required WdLetterStyle. The document layout.

Letterhead

Required Boolean. True to reserve space for a preprinted letterhead.

LetterheadLocation

Required WdLetterheadLocation. The location of the preprinted letterhead.

LetterheadSize

Required Single. The amount of space (in points) to be reserved for a preprinted letterhead.

RecipientName

Required String. The name of the person who'll be receiving the letter.

RecipientAddress

Required String. The mailing address of the person who'll be receiving the letter.

Salutation

Required String. The salutation text for the letter.

SalutationType

Required WdSalutationType. The salutation type for the letter.

RecipientReference

Required String. The reference line text for the letter (for example, "In reply to:").

MailingInstructions

Required String. The mailing instruction text for the letter (for example, "Certified Mail").

AttentionLine

Required String. The attention line text for the letter (for example, "Attention:").

Subject

Required String. The subject text for the specified letter.

CCList

Required String. The names of the carbon copy (CC) recipients for the letter.

ReturnAddress

Required String. The text of the return mailing address for the letter.

SenderName

Required String. The name of the person sending the letter.

Closing

Required String. The closing text for the letter.

SenderCompany

Required String. The company name of the person creating the letter.

SenderJobTitle

Required String. The job title of the person creating the letter.

SenderInitials

Required String. The initials of the person creating the letter.

EnclosureNumber

Required Integer. The number of enclosures for the letter.

InfoBlock

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

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

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

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

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

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

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

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.

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

Anzeigen:
© 2015 Microsoft