Let us try to speak the same language here.
First off. Thank you for the precision on what a "Template" DOT file is and can do.
I said we need to generate labels from a template, so when I said "replace" I meant I wanted to plug an image onto the template in the same place and same size each time.
Obviously then if I use a DOT file I am not replacing anything. Where the confusion lay was in the definition of "template". I had in mind creating standard DOC file. Let us call it "label1.doc" I was trying to find a way of opening that file and replacing the information in it (pictures... text.. whatever) with other information (pictures.. text... whatever) supplied by the user. All the pictures already exist but in different sizes.
My problem with the images, as I implied in my first post, is that they are NOT uniform in size or shape and I do not have the time or energy to go through the entire directory and resize them all.
From what I gather, this is the wrong approach.
I need to create a DOT file then.
I played around with creating merge fields... For text.. No problem. But I do not know how an image field is created. Everytime I tried to insert an image into a document it is too large. It needs to be manually resized. I tried getting code for this by programming the resize via macro, but for some reason I cannot choose an image while recording a macro. I am trying to make this as foolproof as possible. No user intervention required other than stating which template to use and the data (picture...text) to be merged.
How do I create an image field in my template? One that will retain the same size and position regardless of the size of the image that is merged with it.
I have looked at the merge function in word, and I conclude that while it could work, what we want to do is not the original intention of the merge function. We do not have a database of images and text that we can just push a button and create all the new labels from. What we have is a folder full of images used by the current label software that we will re-use in the creation of new labels. The text to be linked will be supplied over a period of time as we need the new labels. This would be done one at a time.. not 50, 100 or more.
Perhaps then I have wasted my time and yours.![]()
I will look further into finding a way of accessing our current label software via Access or VB. However if you have any really good ideas I would much appreciate them.
Thank you for your time.
Ray![]()