MailMerge.ShowWizard Method
Displays the Mail Merge Wizard in a document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub ShowWizard ( _
ByRef InitialState As Object, _
ByRef ShowDocumentStep As Object, _
ByRef ShowTemplateStep As Object, _
ByRef ShowDataStep As Object, _
ByRef ShowWriteStep As Object, _
ByRef ShowPreviewStep As Object, _
ByRef ShowMergeStep As Object _
)
'Usage
Dim instance As MailMerge
Dim InitialState As Object
Dim ShowDocumentStep As Object
Dim ShowTemplateStep As Object
Dim ShowDataStep As Object
Dim ShowWriteStep As Object
Dim ShowPreviewStep As Object
Dim ShowMergeStep As Object
instance.ShowWizard(InitialState, ShowDocumentStep, _
ShowTemplateStep, ShowDataStep, _
ShowWriteStep, ShowPreviewStep, _
ShowMergeStep)
void ShowWizard(
ref Object InitialState,
ref Object ShowDocumentStep,
ref Object ShowTemplateStep,
ref Object ShowDataStep,
ref Object ShowWriteStep,
ref Object ShowPreviewStep,
ref Object ShowMergeStep
)
Parameters
- InitialState
Type: System.Object%
Required Object. The number of the Mail Merge Wizard step to display.
- ShowDocumentStep
Type: System.Object%
Optional Object. True keeps the "Select document type" step in the sequence of mail merge steps. False removes step one.
- ShowTemplateStep
Type: System.Object%
Optional Object. True keeps the "Select starting document" step in the sequence of mail merge steps; False removes step two.
- ShowDataStep
Type: System.Object%
Optional Object. True keeps the "Select recipients" step in the sequence of mail merge steps; False removes step three.
- ShowWriteStep
Type: System.Object%
Optional Object. True keeps the "Write your letter" step in the sequence of mail merge steps; False removes step four.
- ShowPreviewStep
Type: System.Object%
Optional Object. True keeps the "Preview your letters" step in the sequence of mail merge steps; False removes step five.
- ShowMergeStep
Type: System.Object%
Optional Object. True keeps the "Complete the merge" step in the sequence of mail merge steps; False removes step six.