How can I add a c# Image/data[] into a shape

L

landing

I need to retrieve the images in data[] type in database and draw to the
visio shape, and I can convert the data[] into the Image type in c#, but I
can't find the way that the shape can use it directly. Anyone has any idea
about that?

Thx very much.
 
A

AlEdlund

How about a little more information? What do you mean by images, and what do
you expect the 'shape' to do with them?
al
 
L

landing

Hi, Aledlund,

the image is stored in database in data[] format. Actually, I want to add
the data array image directly into stencil as a master, or draw it directly
onto the visio page, instead of exporting the image to disk and then
importing into visio.

And I wonder there is some way to import some sort of stream to visio .

Is there any c# solution?

Thank you very much

AlEdlund said:
How about a little more information? What do you mean by images, and what do
you expect the 'shape' to do with them?
al


landing said:
I need to retrieve the images in data[] type in database and draw to the
visio shape, and I can convert the data[] into the Image type in c#, but I
can't find the way that the shape can use it directly. Anyone has any idea
about that?

Thx very much.
 
L

landing

Hi, Aledlund,

the image is stored in database in data[] format. Actually, I want to add
the data array image directly into stencil as a master, or draw it directly
onto the visio page, instead of exporting the image to disk and then
importing into visio.

And I wonder there is some way to import some sort of stream to visio .

Is there any c# solution?

Thank you very much

AlEdlund said:
How about a little more information? What do you mean by images, and what do
you expect the 'shape' to do with them?
al


landing said:
I need to retrieve the images in data[] type in database and draw to the
visio shape, and I can convert the data[] into the Image type in c#, but I
can't find the way that the shape can use it directly. Anyone has any idea
about that?

Thx very much.
 
A

AlEdlund

I apologize, I still don't understand what you mean by image. I get the
impression you might be talking about an array/collection (data[]). Is it an
array of strings, integers, objects....... I am unaware of a mechanism for
Visio to natively handle a stream. Have you checked out the visio sdk on
msdn for c# examples...
al


landing said:
Hi, Aledlund,

the image is stored in database in data[] format. Actually, I want to add
the data array image directly into stencil as a master, or draw it
directly
onto the visio page, instead of exporting the image to disk and then
importing into visio.

And I wonder there is some way to import some sort of stream to visio .

Is there any c# solution?

Thank you very much

AlEdlund said:
How about a little more information? What do you mean by images, and what
do
you expect the 'shape' to do with them?
al


landing said:
I need to retrieve the images in data[] type in database and draw to
the
visio shape, and I can convert the data[] into the Image type in c#,
but I
can't find the way that the shape can use it directly. Anyone has any
idea
about that?

Thx very much.
 
L

landing

oops, really sorry for that, I meant the image in byte[], I typed it wrong
once and once again, sorry for the confusing......

I want to add the byte[] image directly into stencil as a master, or draw
it onto the drawing page. I have checked the SDK, I didn't find the proper
way to deal with it.

AlEdlund said:
I apologize, I still don't understand what you mean by image. I get the
impression you might be talking about an array/collection (data[]). Is it an
array of strings, integers, objects....... I am unaware of a mechanism for
Visio to natively handle a stream. Have you checked out the visio sdk on
msdn for c# examples...
al


landing said:
Hi, Aledlund,

the image is stored in database in data[] format. Actually, I want to add
the data array image directly into stencil as a master, or draw it
directly
onto the visio page, instead of exporting the image to disk and then
importing into visio.

And I wonder there is some way to import some sort of stream to visio .

Is there any c# solution?

Thank you very much

AlEdlund said:
How about a little more information? What do you mean by images, and what
do
you expect the 'shape' to do with them?
al


I need to retrieve the images in data[] type in database and draw to
the
visio shape, and I can convert the data[] into the Image type in c#,
but I
can't find the way that the shape can use it directly. Anyone has any
idea
about that?

Thx very much.
 
A

AlEdlund

o.k., so you have a byte image that you want visio to treat as a shape (
assumed because you said you want to drop it on a stencil and treat as a
master), or draw it on a drawing page. Shapes are stored in an internal
format (not published), so a scenario might be to have them predefined as
xml and placed into an xml version of a drawing (I.e. a vxd file) and read
the converted drawing using Visio (thus an under the covers conversion).
I've seen your post over on Chris Roth's site, he has some materials on
using xml to create visio drawings.
hth,
al


landing said:
oops, really sorry for that, I meant the image in byte[], I typed it wrong
once and once again, sorry for the confusing......

I want to add the byte[] image directly into stencil as a master, or draw
it onto the drawing page. I have checked the SDK, I didn't find the
proper
way to deal with it.

AlEdlund said:
I apologize, I still don't understand what you mean by image. I get the
impression you might be talking about an array/collection (data[]). Is it
an
array of strings, integers, objects....... I am unaware of a mechanism
for
Visio to natively handle a stream. Have you checked out the visio sdk on
msdn for c# examples...
al


landing said:
Hi, Aledlund,

the image is stored in database in data[] format. Actually, I want to
add
the data array image directly into stencil as a master, or draw it
directly
onto the visio page, instead of exporting the image to disk and then
importing into visio.

And I wonder there is some way to import some sort of stream to visio .

Is there any c# solution?

Thank you very much

:

How about a little more information? What do you mean by images, and
what
do
you expect the 'shape' to do with them?
al


I need to retrieve the images in data[] type in database and draw to
the
visio shape, and I can convert the data[] into the Image type in c#,
but I
can't find the way that the shape can use it directly. Anyone has
any
idea
about that?

Thx very much.
 

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