How to insert a bitmap image into a Excel Cell?

  • Thread starter Sundarraj Natarajan
  • Start date
S

Sundarraj Natarajan

Hello,

I am new to Excel programming. I want to insert a bitmap
image to a cell in an Excel Worksheet. The code in C# I'm
using is given as

rng = (Excel.Range)ws.get_Range("A1", Type.Missing);
rng.Insert(Type.Missing, @"C:\bitmapFile.bmp");

I'm getting the error as "COMException:-2146827284 Insert
method of Range class failed"

Can any one help me on how to insert a bitmap into a cell
programatically using C#?

Thanks,
Sundar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top