foreach (ListViewItem item in listView2.SelectedItems) { listView2.FocusedItem = listView2.Items[item.Index]; DSOFile.OleDocumentPropertiesClass file = new DSOFile.OleDocumentPropertiesClass(); file.Open(listView2.FocusedItem.Text, false, DSOFile.dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess); file.SummaryProperties.Title = tbxTitle.Text; file.SummaryProperties.Subject = tbxSubject.Text; file.SummaryProperties.Keywords = tbxKeywords.Text; file.SummaryProperties.Author = tbxAuthor.Text; file.SummaryProperties.Comments = tbxComments.Text; file.Close(true); MessageBox.Show("Changes Added into Selected File"); }