Hello Mark Nelson,
Thank you very much for your reply.
1) I did explore SolutionXML possibilities but found that it is not suitable
for my requirements.
2) In the second approach, if I were to develop an ActiveX control to store
the data, how exactly can I go about implementing it? How that ActiveX
control writes the data to the drawing document? And also, how the ActiveX
control re-instantiated, gains access to the data when the drawing document
is opened at a later time?
There seems to be an XML tag (VisioShape's property) called
<ForeignData>, which is used to store block of binary data. But how it is
achieved looks mystery to me. I couldn't find any documentation or sample
code piece which addresses this area.
Please, help me if you can. A high level overview of (2) can be a great help
to me.
Thank you.
Muru
----- Mark Nelson [MS] wrote: -----
Visio supports SolutionXML in the document and at a shape level. There
really is no way to attached a binary blob to a shape. Given your potential
size of data, that doesn't sound like a reasonable approach anyway. Store
the binary information somewhere else and put a reference to it in the
shape. If you must include the data with the drawing, one option that
others have used is to write an ActiveX control that can store your data and
place that control on one of your Visio pages.
--
Mark Nelson
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
Muru said:
Hi,
I'm programming for a project which extends Visio's functionalities
and
provides a customized Visio solution. I'm faced with a situation where I
have to store a big chunk of binary data(potentially MBs in size) to every
shape in a drawing. When the drawing gets stored as .vsd file, the data also
should be saved as part of the drawing.
It would be of great help if someone could provide an idea.
Thanks in advance,
Muru
Software Consultant