Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4071536
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:46:10+00:00 2026-05-20T16:46:10+00:00

The medical company I work for has a EMR system setup to keep digital

  • 0

The medical company I work for has a EMR system setup to keep digital copies of patient files so they are searchable as well as quick to access. A new request has come through to be able to save e-mail to the EMR system, however it does not display .msg files very nicely. It does display files nicely as .htm, so was hoping i could figure out a way to save email messages to a specific folder in a .htm format with the user just hitting a single button.

Should i be looking at making an add-in using vs 2010 to do this simple task? Or would there be a better way to do this?

I’ve explored making an Add-In breifly over the past few days using command bars but have hit numerous problems with adding the menu item to mail items, as well as losing event handlers or having them fire quite a few times, so i’m wondering if i’m barking up the wrong tree.

Edit: Looking at ribbon bar customization as well, may have to upgrade some users that are still using 2003, but seems like it might be the better option than command bars going forward.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T16:46:11+00:00Added an answer on May 20, 2026 at 4:46 pm

    Ribbon bar was the best path i found, however i had trouble finding a great how-to for the start-to-finish project, so i’ll make a small write up here.

    To add a button to the ribbon for only existing mail messages including a image for the button.

    Using VS 2010
    New project, Office, select “Outlook 2007 add in”, enter a name for your project.
    To your newly created project, Add a new item “Ribbon (XML)” name it however you want, i’ll call it CustomRibbon
    open your newly created CustomRibbon.xml file and change the tab node to have the following

      <tab idMso="TabReadMessage">
    
        <group insertBeforeMso="GroupActions" id="CustomGroup" label="GroupNameThatShowsInOutlook">
          <button id="btnCustomButton"
                label = "Text For The Custom Button"
                supertip="tip for the button hover"
                onAction ="ButtonClicked"
                size="large"
                getImage="GetCustomButtonImage" />
    
        </group>
      </tab>
    

    This then has 2 callback functions to the CustomRibbon.cs file, one called GetCustomButtonImage, the other ButtonClicked.

    open CustomRibbon.cs to fill this in, in the Ribbon Callbacks region add the following

    public void ButtonClicked(Office.IRibbonControl Control)
    {
       //Do work here
    }
    

    also add the following in the same section

    public stdole.IPictureDisp GetCustomButtonImage(Office.IRibbonControl control)
    {
       System.Drawing.Image myImage;
       myImage = OutlookAddIn.Properties.Resources.ImageName;
       return AxHostConverter.ImageToPictureDisp(myImage);
    }
    

    this will then show there is a class missing, we’ll get to that shortly, but first we are going to add in the last part we need in CustomRibbon.cs. In the IRibbonExtensibility Members region, in GetCustomUI change the existing code

    public string GetCustomUI(string ribbonID)
    {
       if (ribbonID == "Microsoft.Outlook.Mail.Read")
       {
          return GetResourceText("OutlookAddIn.CustomRibbon.xml");
       }
       else
       {
          return "";
       }
    }
    

    Add a new class to your project call it AxHostConverter, add add this to the top

    using System.Windows.Forms;
    using System.Drawing;

    Then change the class to have the following code

    class AxHostConverter : AxHost
    {
        private AxHostConverter() : base("") { }
    
        static public stdole.IPictureDisp ImageToPictureDisp(Image image)
        {
            return (stdole.IPictureDisp)GetIPictureDispFromPicture(image);
        }
    
        static public Image PictureDispToImage(stdole.IPictureDisp pictureDisp)
        {
            return GetPictureFromIPicture(pictureDisp);
        }
    }
    

    Add your image for your button to the project, and change the GetCustomButtonImage function to use that resource. I used a PNG and had good luck with transparencies displaying well.

    And finally, all that should be left is to add the following to ThisAddIn.cs

        protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
        {
            return new CustomRibbon();
        }
    

    Add whatever code you are wanting to ButtonClicked and you are set.

    Deploy using Clickonce and installation is fairly straightforward.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work for a medical lab company. They need to be able to search
The software system I work on is a medical billing system, large amounts of
I work for a medical transcription company and our medical transcription test we administer
My company has an application that allows users to perform a diagnostic medical test
In the medical domain, a patient has a ton of exams (HbA1C, Lipid, Renal,
The company I work for sells medical statistics reports. Currently these reports are purchased
Recently I was trying for a company ‘x’. They sent me some set of
I build an employee planning system for a medical environment. Normally the employees are
In the project I work on, we handle Medical Billing. Every time the state
I have two different types of dicom(medical imaging files) in the same folder. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.