title: How to convert Excel.Range.Interior.Color to System.Drawing.Color in C#?
body: <p>I have an excel sheet with some cells having some background color. I need this color in html code and hence I want to convert Excel.Range.Interior.Color to RGB format or System.Drawing.Color.</p>
  
  <p>After doing that i would be using System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color) to get color to be used in html tags.</p>
  
  <p>I tried doing following:</p>
  
  <pre><code>Excel.Range r = (Excel.Range)m_objRange[2, 2];
  System.ComponentModel.TypeConverter converter = System.ComponentModel.TypeDescriptor.GetConverter(r.Interior.Color);
                 MessageBox.Show(""+converter.ConvertTo(r.Interior.Color,typeof(System.Drawing.Color)));
  </code></pre>
  
  <p>But i get an error that i cannot convert System.Double to System.Drawing.Color</p>