How to Save Excel chart object as a GIF ?

H

hype

Hi,
When programming using the .NET framework,
How can Is it possible to save the Chart in an existing excel spreadsheet as
a GIF programmatically ?
Thanks,
Hype.
 
P

Peter O'Reilly

When programming using the .NET framework,
How can Is it possible to save the Chart in an existing excel spreadsheet as
a GIF programmatically ?

The Excel application object model exposes a Chart object. If you call the
Export method of the Chart object, you will be able to save the chart as a
gif.

To write code to manipulate Excel, you will need to use the .NET framework's
System.Runtime.InteropServices assembly as Excel (VBA) is COM based.

Good luck!
 
T

theteto

Do you have any sample about how to export charts using
System.Runtime.InteropServices ?
 

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