Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / October 2004

Tip: Looking for answers? Try searching our database.

Includepicture HTML-code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Walter Verkuil - 15 Oct 2004 15:58 GMT
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
macropod - 16 Oct 2004 04:15 GMT
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

> Hi,
>
[quoted text clipped - 16 lines]
> Thanks,
> Walter
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.