opening an embedded document

J

Joseph

Hello everyone,

I have a document containing an embedded (TIF) picture.

What I am trying to do is to be able to open that picture by clicking on a
string of text.

All I have managed to do so far, is to create a link to the picture, then I
have to dble-click on it to open it, as per normal.

But what I wish to achieve is to create the equivalent of an hyperlink to an
embedded doc instead of an external document, which would be no problem.

Any help will be much appreciated.

TIA

Joseph
 
A

Anand.V.V.N

Hi Joseph,

I don't know if this would help but what you could do is insert a hyper link
to the picture itself in case you doing it in word. This is embed your
picture and then have a text like edit this picture, make this text as
hyperlin to the origianl picture, so when the link is clicked the appropitate
program is launched with the pciture opened.

In case you are doing it user forms you can create a label, when it is
clicked you can use the shell command to launch the file.

Is this waht you were looking for?

Hope you found it useful

Anand
 
J

Joseph

Hi Anand,

Yes that is what I am looking for, I have a little difficulty understanding
some of your points though.

Thanks Anand.
 
A

Anand.V.V.N

Hi Joseph,

I am sorry about that.

What I meant was that In case you haev embeded the picture in the document

Type a line, select the line and choose the hyperlink from the insert menu,
and select the picture file as the target, when ever the link is clicked the
pciture file is opened with the program associated with the file.

By the way are you using it in the document or using VBA, i mean in the
froms. In that case , you can place a button on the form, and use the comman
shell to launch the picture file.

I hope this was clear enough, do let me know.

Anand
 
J

Joseph

Hi Anand,

Thanks for your reply. The problem is that I can only link the hyperlink to
a bookmark within the document, but not to an embedded file, at least I
don't see the option to do so.
Perhaps using VBA, by going thru the collection of embedded objects, if
there is such a thing.

Thanks again

Joseph
 
A

Anand.V.V.N

Hi Joseph,

Hyperlink can be created to not only a bookmark? I didn't quite understand
by what you meant by that, could you please expalin that part.

Any way this is how you would create hyper link for an external image or file
choose hyperlink from the insert menu, frm the look in drop down you can
select the folder in which the file is located. From the folder select the
file and click insert.

Hope this helped, let me know
Anand
 
J

Joseph

Hello Anand,

The document I am working on contains one picture embeded into it. There
will be many more embeded pictures at some stage.

Their purpose is to illustrate points made in the same document.

For example:
blah blah blah, click here to go to a picture of the diagram, blah blah
blah, more text...

I can then
1 - create a bookmark to the picture in question
2 - create an hyperlink to that bookmark and associate the link to the words
"click here to go to a picture "

What I would like to be able to do is not simply navigate to where in the
document the picture is, but get the picture to open in a viewer by clicking
on the hyperlink.

I suppose what I need to be able to do is enumarate throu the collection of
embeded object (if such a collection exists) and given a specified name,
opened the embeded object/picture.

Exporting the picture(s) as external object(s) (in relation to the word
document that contain them) is not practical.

Hope that make it a bit clearer

TIA
 
A

Anand.V.V.N

Hi Joseph,

This propertiy gives you the number of inline shapes
ActiveDocument.InlineShapes.Count, usign this you can create a loop, there is
also
ActiveDocument.InlineShapes.Item(i).Type property that gives type of the
inline shape,

I don't know hoe helpful this was by the way

You can loop through the pcitures using the
ActiveDocument.InlineShapes.Count and then use the
ActiveDocument.InlineShapes.Item(i).Type property, you can create a bookmark
and a Hyperlink if the type of the shape in the image like tiff etc.

I hope this was helpful.

Anand
 
J

Joseph

Anand,

Thank you very much for your help.

I did find the InlineShapes collection, eventually, but it is a bit
restrictive, as according to the documentation
there is no Name property.

I think I'll let that problem go its own way for now.

Thank you very mych again for your help and persistance. Much appreciated.

Joseph
 
A

Anand.V.V.N

Hi Joseph,

No problem, you welcome. By the which version you are using.
Any way If I come up with some thing I'll surely do post it.

Anand
 

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