Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

_Document.RunLetterWizard Method

Runs the Letter Wizard on the specified document.

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

'Usage
Dim LetterContent As Object
Dim WizardMode As Object
Dim _Document1 As _Document
_Document1.RunLetterWizard(LetterContent, WizardMode)

void RunLetterWizard(
	[In, Optional] ref object LetterContent, 
	[In, Optional] ref object WizardMode
);
public void RunLetterWizard(
	/*in*/System.Object LetterContent, 
	/*in*/System.Object WizardMode
);
function RunLetterWizard(
	 LetterContent : Object, 
	 WizardMode : Object
);

Parameters

LetterContent

Optional Object. A LetterContent object. Any filled properties in the LetterContent object show up as prefilled elements in the Letter Wizard dialog boxes. If this argument is omitted, the GetLetterContent method is automatically used to get a LetterContent object from the specified document.

WizardMode

Optional Object. True to display the Letter Wizard dialog box as a series of steps with a Next, Back, and Finish button. False to display the Letter Wizard dialog box as if it were opened from the Tools menu (a properties dialog box with an OK button and a Cancel button). The default value is True.

Use the CreateLetterContent method to return a LetterContent object, given various letter element properties. Use the GetLetterContent method to return a LetterContent object based on the contents of the specified document. You can use the resulting LetterContent object with the RunLetterWizard method to preset elements in the Letter Wizard dialog box.


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: