Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Writing images into Excel file

Subject: Writing images into Excel file

From: Bojan

Date: 14 Apr, 2008 13:30:21

Message: 1 of 4

I am using xlswrite to output data from a calculation. I
would also like to output some figures in the same excel
file. Is it possible to write a bitmap or a tif into excel
spreadsheet using xlswrite or some other command?
Many thanks
Bojan

Subject: Re: Writing images into Excel file

From: avan

Date: 14 Apr, 2008 13:52:53

Message: 2 of 4

On Apr 14, 3:30 pm, "Bojan " <bobrado...@illumina.com> wrote:
> I am using xlswrite to output data from a calculation. I
> would also like to output some figures in the same excel
> file. Is it possible to write a bitmap or a tif into excel
> spreadsheet using xlswrite or some other command?
> Many thanks
> Bojan

Why don't you just print the figures into bitmap or tif files and then
insert them manually from excel? You can also try to copy the figure
and paste it in excel.


Avan

Subject: Re: Writing images into Excel file

From: Phil Goddard

Date: 14 Apr, 2008 18:20:19

Message: 3 of 4


xlswrite won't do it for you, but you can do pretty much
anything to an Excel spreadsheet from within MATLAB by
opening a COM connection.
Have a look at
>> doc actxserver
for info on opening such a connection.

From there you need to know the appropriate ActiveX methods
to create and insert the image.
That is not trivial and will take some trial and error.

A good start is to do the image insertion manually from
within Excel while recording your steps as a macro.
Then look at the macro to see the types of commands that
you'll need to use from within MATLAB to do it
automatically.

Phil.

Subject: Re: Writing images into Excel file

From: Jason

Date: 16 Apr, 2008 12:57:02

Message: 4 of 4

"Bojan " <bobradovic@illumina.com> wrote in message
<ftvm9d$idk$1@fred.mathworks.com>...
> I am using xlswrite to output data from a calculation. I
> would also like to output some figures in the same excel
> file. Is it possible to write a bitmap or a tif into
excel
> spreadsheet using xlswrite or some other command?
> Many thanks
> Bojan
Can you not set up a com link?

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
activex Phil Goddard 14 Apr, 2008 14:20:40
excel Phil Goddard 14 Apr, 2008 14:20:40
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics