Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Visio and Matlab

Subject: Visio and Matlab

From: Sara

Date: 28 Jul, 2005 09:47:05

Message: 1 of 6

Hi

I have a question and I would be so grateful, if any one can give me
some help with it.
I would like to know is there any way that I can insert a picture
from MS Visio to GUI in Matlab. If the answer is yes, how I might be
able to do that.

Thank you,

Sara

Subject: Visio and Matlab

From: us

Date: 28 Jul, 2005 10:00:28

Message: 2 of 6

Sara:
<SNIP wants to spruce up his/her boring ML gui with a spiffy pic
from another app...

a hint:
     in your app
     save the image in <tiff>/<jpeg>/<...> format
     in ML
     img=imread(...)
     now, use it as you like

     see
     help imread
     for information on available formats

us

Subject: Visio and Matlab

From: Michael Robbins

Date: 28 Jul, 2005 11:08:35

Message: 3 of 6

us wrote:
> Sara:
> <SNIP wants to spruce up his/her boring ML gui with a spiffy pic
> from another app...
>
> a hint:
> in your app
> save the image in <tiff>/<jpeg>/<...> format
> in ML
> img=imread(...)
> now, use it as you like
>
> see
> help imread
> for information on available formats
>
> us

You can also download a Visio reader ActiveX control and put it in a
GUI, or very likely access Visio itself via ActiveX.

Subject: Visio and Matlab

From: Sara

Date: 28 Jul, 2005 16:58:41

Message: 4 of 6

Michael:
thanks for replying to my question.
But, how can I download the Visio reader ActiveX control?

Michael Robbins wrote:
>
>
> us wrote:
>> Sara:
>> <SNIP wants to spruce up his/her boring ML gui with a spiffy
pic
>> from another app...
>>
>> a hint:
>> in your app
>> save the image in <tiff>/<jpeg>/<...>
format
>> in ML
>> img=imread(...)
>> now, use it as you like
>>
>> see
>> help imread
>> for information on available formats
>>
>> us
>
> You can also download a Visio reader ActiveX control and put it in
> a
> GUI, or very likely access Visio itself via ActiveX.
>

Subject: Visio and Matlab

From: Michael Robbins

Date: 28 Jul, 2005 17:22:20

Message: 5 of 6

>> You can also download a Visio reader ActiveX control and put it
> in
>> a
>> GUI, or very likely access Visio itself via ActiveX.
>>

Microsoft is fantastic! Look at all this stuff they give you for the
little bit you pay...

Here's how to access Visio via ActiveX. I've never tried it, but I
expect it's not too hard:

 <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vis2003_ta/html/odc_vsprogrammingwithvisioactivexcontrol.asp>

To find an activex control to download, use a search engine like
www.a9.com and the phrase, visio activex, and I'm sure you'll find
some--most likely for free.

Subject: Visio and Matlab

From: Michael Robbins

Date: 28 Jul, 2005 18:52:40

Message: 6 of 6

> Microsoft is fantastic! Look at all this stuff they give you for
<snip>

Phoey to those anti-corporate anarchists! Phoey, I say!

>>% FIND THE CONTROL
>>h=actxcontrollist;
>>h{strmatch({'Microsoft Visio'},h(:,1)),1:2}
ans = Microsoft Visio Viewer
ans = VisioViewer.Viewer.1

>>% SO NOW YOU KNOW...
>>% CREATE THE CONTROL
>>h=actxcontrol('VisioViewer.Viewer.1', ...
   [0 0 300 300]);

>>% AND LOAD THE FILE FOR VIEWING
>>h.Load('yourfile.vis');

Keep a lookout for my new whitepaper that covers this and more!

For now, check out my other stuff, especially FILLGRID, at:

 <http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=828141&objectType=author>

Tags for this Thread

No tags are associated with this thread.

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.

Contact us