Unable to display embedded image for Enterprise Vault Archived Email(olFormatRichText )

Add-in Express™ Support Service
That's what is more important than anything else

Unable to display embedded image for Enterprise Vault Archived Email(olFormatRichText )
 
This forum has moved to a new location. From now on, please post all your questions about Ribbon Designer for SharePoint on this forum.
Manikandan


Guest


Hi All,

I couldn't able to retrieve Embedded image using Ribbon menu for Outlook Enterprise Vault Archived Emails.

I have used below code,

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.

Please any one help me how to retrieve embedded image for Enterprise Vault Archive Email(olFormatRichText )?

Thanks in Advance.
Posted 07 Mar, 2012 05:32:32 Top
Eugene Astafiev


Guest


Hi Manikandan,

What our product do you use? Is it the http://www.add-in-express.com/office365-sharepoint-ribbon-designer/index.php?
Posted 07 Mar, 2012 05:42:14 Top
Manikandan


Guest


Hi Eugene,

I have created the Ribbon Menus using Ribbon XML to my project.

Please find the below code,

<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onL oad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabReadMessage">
<group id="grpRespond"
label="Respond with Attachment" insertBeforeMso="GroupShow" >
<button id="textButton" label="Reply with Attachment" getImage="GetImage" size="large"
screentip="Reply with Attachment" onAction="ReplywithAttachment"
supertip="Reply to the sender with attachment of this message." getEnabled="IsVisible"/>
<button id="tableButton" label="Reply All With Attachment" getImage="GetImage" size="large"
screentip="Reply All With Attachment" onAction="ReplyAllWithAttachment"
supertip="Reply to the sender and all other recipients with attachment of this message." getEnabled="IsVisible"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>

I'm not using Ribbon Designer for Microsoft??? SharePoint??? and Office 365 for my project.
Posted 07 Mar, 2012 06:13:13 Top
Eugene Astafiev


Guest


Hi Manikandan,

Okay. What our product do you use?
Posted 07 Mar, 2012 06:17:57 Top
Manikandan


Guest


Hi Eugene,

My Requirement is Reply/Reply to All with original attachments in outlook 2010 using Outlook Add-In application.

I'm using Microsoft Outlook 2010 and MS visual studio 2010(c#).
Posted 07 Mar, 2012 07:03:33 Top
Eugene Astafiev


Guest


Hi Manikandan,

Note that we answer questions and requests from our customers only. Please use http://social.msdn.microsoft.com/Forums/en-US/categories instead.
Posted 07 Mar, 2012 07:12:31 Top
Manikandan


Guest


ok thanks for you reply.
Posted 08 Mar, 2012 00:56:37 Top
Eugene Astafiev


Guest


You are welcome, Manikandan! :-)
Posted 08 Mar, 2012 06:17:32 Top