Includepicture HTML-code

W

Walter Verkuil

Hi,

i want to know the html code to include a picture during a mailmerge in MS
Word.
If you connect a document to a source with some mergefields and save this
document as a html page you get a page with code (which datasource etc.).
Each mailmerge field will appear like:

<span style='mso-field-code:" MERGEFIELD FieldnameA"'><span
style='mso-no-proof:yes'>«FieldnameA»</span></span>.

Now i want to know the HTML code to include a picture. If i do the same like
above the following code will be produced:

<img src="some link" width='100' height='100' >

But i need something with the includepicture syntax.
I hope someone can help with this problem.
Thanks,
Walter
 
M

macropod

Hi Walter,

Use an INCLUDEPICTURE field, coded like:
{INCLUDEPICTURE {MERGEFIELD PicPath&Name}}
if your MERGEFIELD includes the full path, filename & extension, or:
{INCLUDEPICTURE "DriveName:\\ParentFolder\\FolderName\\{MERGEFIELD
PicName}"}
if your MERGEFIELD lack the full path but includes the filename & extension,
or
{INCLUDEPICTURE "DriveName:\\ParentFolder\\FolderName\\{MERGEFIELD
PicName}.jpg"}
your MERGEFIELD lacks the path & file's extension.

The important point to note is that, if you have to type in the path, you
have to use double backslashes, not just one, and you should enclose both it
and the filename in double quotes.

Cheers
 

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