Document.MailMergeAfterMerge Olay

Adres-mektup birleştirmede tüm kayıtları başarıyla birleştirdi sonra oluşur.

Ad alanı:  Microsoft.Office.Tools.Word
Derlemeler:   Microsoft.Office.Tools.Word.v4.0.Utilities (Microsoft.Office.Tools.Word.v4.0.Utilities.dll içinde)
  Microsoft.Office.Tools.Word (Microsoft.Office.Tools.Word.dll içinde)

Sözdizimi

'Bildirim
Event MailMergeAfterMerge As MailMergeAfterMergeEventHandler
event MailMergeAfterMergeEventHandler MailMergeAfterMerge

Örnekler

Aşağıdaki kod örneği, bir ileti görüntüler, MailMergeAfterMerge olayı oluşturulur.Bu örnek, bir uygulama düzeyi eklentisi içindir.

Private Sub DocumentMailMergeAfterMerge()
    Dim vstoDoc As Document = Globals.Factory.GetVstoObject(Me.Application.ActiveDocument)
    AddHandler vstoDoc.MailMergeAfterMerge, AddressOf ThisDocument_MailMergeAfterMerge
End Sub

Private Sub ThisDocument_MailMergeAfterMerge(ByVal sender As Object, ByVal e As  _
    Microsoft.Office.Tools.Word.MailMergeAfterMergeEventArgs)
    Dim vstoDoc As Document = Globals.Factory.GetVstoObject(Me.Application.ActiveDocument)
    System.Windows.Forms.MessageBox.Show("Your mail merge on " & vstoDoc.Name & " is now finished.")
End Sub
private void DocumentMailMergeAfterMerge()
{
    Document vstoDoc = Globals.Factory.GetVstoObject(this.Application.ActiveDocument);
    vstoDoc.MailMergeAfterMerge += new Microsoft.Office.Tools.Word.MailMergeAfterMergeEventHandler(ThisDocument_MailMergeAfterMerge);
}

void ThisDocument_MailMergeAfterMerge(object sender, Microsoft.Office.Tools.Word.MailMergeAfterMergeEventArgs e)
{
    Document vstoDoc = Globals.Factory.GetVstoObject(this.Application.ActiveDocument);
    System.Windows.Forms.MessageBox.Show("Your mail merge on " 
        + vstoDoc.Name + " is now finished.");
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

Document Arabirim

Microsoft.Office.Tools.Word Ad Alanı