Tag Archives: VSTO

How to read To,Cc,Bcc fields from current mailitem in vsto 2010

If you want to get all members of to,cc, bcc fields from the current outlook compose mail item,then we can use Application.ActiveInspector().CurrentItem object in vsto add-ins.

you can try following code snippt for reading all Recipients information with address, name and we can also get  to,cc, bcc fields from the current compose mail item.

Private Sub GetInfo()
    Dim strTo As String = ""
    Dim strCC As String = ""
    Dim strBCC As String = ""
    Dim _item As Outlook.MailItem = Globals.ThisAddIn.Application.ActiveInspector().CurrentItem
    strTo = _item.To
    strCC = _item.CC
    strBCC = _item.BCC
    For Each Rec As Outlook.Recipient In _item.Recipients
        MessageBox.Show("Recipient name : " & Rec.Name)
 End Sub

Read inbuilt document properties of word document in C#

Word document properties are the details which describe the identity of a word document. In this article we will discuss about how to read document properties of any word document in C#.  Every word document has some inbuilt properties and custom properties such as Title, subject, category, Author and comments etc. In Ms-Word application, you can see or edit the document properties by opening Advance Document properties window just like if you are working on word 2010 you will see this like:

Advance properties in word 2010

Continue reading Read inbuilt document properties of word document in C#