Hi All,
I couldn't able to retrieve Embedded image using Ribbon menu.
public void ReplyAllWithAttachment(Office. IRibbonControl control)
{
ReplyWithAttachments( true );
}
public void ReplyWithAttachments( bool isreplyall)
{
Outlook. MailItem rpl;
object item;
item = GetCurrentItem();
try
{
if (item != null )
{
Outlook. MailItem mailItem = item as Outlook. MailItem ;
rpl = (Outlook. MailItem )mailItem.Reply();
CopyAttachments(mailItem, rpl);
rpl.BodyFormat = Outlook. OlBodyFormat .olFormatHTML;
rpl.Display();
rpl = null ;
item = null ;
}
}
catch ( Exception ex)
{
WriteLog(ex.ToString());
}
}
public object GetCurrentItem()
{
Microsoft.Office.Interop.Outlook. Application objApp = new Microsoft.Office.Interop.Outlook. Application ();
object GetCurrentItem = null ;
object activeWindow = objApp.ActiveWindow();
try
{
if (activeWindow!= null )
{
Outlook. Explorer explorer = activeWindow as Outlook. Explorer ;
Outlook. Inspector inspector = activeWindow as Outlook. Inspector ;
if (explorer != null )
{
GetCurrentItem = objApp.ActiveExplorer().Selection[1];
}
else if (inspector != null )
{
GetCurrentItem = objApp.ActiveInspector().CurrentItem;
}
}
}
catch ( Exception ex)
{
WriteLog(ex.ToString());
}
return GetCurrentItem;
}
By defualt mailitem bodyformat properties is olFormatRichText for Enterprise Vault Archived Email.I am converting the mailitem bodyformat