copy image from template to activedocument

F

F. Roettger

Hi,

I want to copy an image from the primaryheader of a template to the
primaryheader of activedocument. I could use clipboard or write to file,
but isn't it possible to copy just from one document to another?

thanks for your help!

greetings
florian
 
W

Word Heretic

G'day "F. Roettger" <[email protected]>,

Yes and no :) In this case, you are talking about a template. It is
opened as an object in the Templates collection, which only have part
of their content loaded and accessible. A Template is NOT the same as
a Document in the Documents collection, of which ActiveDocument is
just one.

However, a Template has a pathname and that can be opened as a
Document by using the Documents.Open or Documents.Add statements. Then
you will have access to its content.

So you use code similar to

Dim Source as Document
Dim Target as Document

Set Target = ActiveDocument
Set Source = Documents.Open "c:/something/myTemplate"




Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


F. Roettger reckoned:
 

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