public void ExecuteDataView()
{
// Open the document that we want to fill with data.
Document doc = new Document(MyDir + "MailMerge.ExecuteDataView.doc");
// Get the data from the database.
DataTable orderTable = GetOrders();
// Create a customized view of the data.
DataView orderView = new DataView(orderTable);
orderView.RowFilter = "OrderId = 10444";
// Populate the document with the data.
doc.MailMerge.Execute(orderView);
doc.Save(MyDir + @"\Artifacts\MailMerge.ExecuteDataView.doc");
}