Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Cheryl
 
Posts: n/a
Default Word 2003 Field code within a field code

I have a unique problem. I am trying to use the INCLUDEPICTURE field code.
The document I'm using is linked to a very sophisticated database software
program and I have received instructions on merging data from this database
INTO the INCLUDEPICTURE field to create the filename for the photo files. An
example is typed below:

{INCLUDEPICTURE "G:\\START\\IMAGES\\PHOTOS\\{MERGEFIELD
"PROVIDER_LAST_NAME"}_{MERGEFIELD "PROVIDER_FIRST_NAME"}.GIF"}

In the above example, the photo filenames are all matched up to the fields
referenced in the formula (last_first.gif). These are the correct field
codes, and the double slashes are important, I have been told.

My problem is that as soon as I save the document containing the above
field, the underscores all change to "%20" and the field doesn't work!! No
one at my software vendor's help desk can help me with this problem. Does
anyone know anything about preventing this??

Thank you!

Cheryl
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
GTS
 
Posts: n/a
Default Word 2003 Field code within a field code


"Cheryl" wrote in message
...
I have a unique problem. I am trying to use the INCLUDEPICTURE field code.
The document I'm using is linked to a very sophisticated database software
program and I have received instructions on merging data from this

database
INTO the INCLUDEPICTURE field to create the filename for the photo files.

An
example is typed below:

{INCLUDEPICTURE "G:\\START\\IMAGES\\PHOTOS\\{MERGEFIELD
"PROVIDER_LAST_NAME"}_{MERGEFIELD "PROVIDER_FIRST_NAME"}.GIF"}

In the above example, the photo filenames are all matched up to the fields
referenced in the formula (last_first.gif). These are the correct field
codes, and the double slashes are important, I have been told.

My problem is that as soon as I save the document containing the above
field, the underscores all change to "%20" and the field doesn't work!! No
one at my software vendor's help desk can help me with this problem. Does
anyone know anything about preventing this??

Thank you!

Cheryl

I use a similar statement to include signatures on all our letters at work:
{ INCLUDEPICTURE "C:\\SIGS\\{MERGEFIELD FULLNAME }.jpg" }- and it works
fine.

Two possibilities spring to mind - I too had problems using GIF images
originally, try using BMP or JPG instead - from the MS KB:

"Many JPEG or GIF images contain complex formatting options such as
animations, sounds, or progressive displays. Word does not use these
options. To modify the picture so that it includes only those elements that
Word uses, use a picture editing program to save the picture in a simpler
format: . For a GIF graphic, lower the complexity to CIS GIF 87 or 87A
rather than GIF 89A.
. For a JPEG picture, save it in the "simple" or "baseline" format,
without any progressive redraw features"

Secondly you are enclosing your mergefields in extra quotation marks which
I don't think are needed as no spaces so you could use
{ INCLUDEPICTURE "G:\\START\\IMAGES\\PHOTOS\\{MERGEFIELD
PROVIDER_LAST_NAME}_{MERGEFIELD PROVIDER_FIRST_NAME}.JPG" }
Oh and the curly braces have to be entered using CTRL-F9 I'm sure you
already know...
HTH
Graham

Graham


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor
 
Posts: n/a
Default Word 2003 Field code within a field code

%20 is usually inserted to replace a space and not an underscore. Replace
the underscores with %5F in the original field construction and see if that
effects an improvement.

{INCLUDEPICTURE "G:\\START\\IMAGES\\PHOTOS\\{MERGEFIELD
"PROVIDER%5FLAST_NAME"}%5F{MERGEFIELD "PROVIDER%5FFIRST%5FNAME"}.GIF"}

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Cheryl wrote:
I have a unique problem. I am trying to use the INCLUDEPICTURE field
code. The document I'm using is linked to a very sophisticated
database software program and I have received instructions on merging
data from this database INTO the INCLUDEPICTURE field to create the
filename for the photo files. An example is typed below:

{INCLUDEPICTURE "G:\\START\\IMAGES\\PHOTOS\\{MERGEFIELD
"PROVIDER_LAST_NAME"}_{MERGEFIELD "PROVIDER_FIRST_NAME"}.GIF"}

In the above example, the photo filenames are all matched up to the
fields referenced in the formula (last_first.gif). These are the
correct field codes, and the double slashes are important, I have
been told.

My problem is that as soon as I save the document containing the above
field, the underscores all change to "%20" and the field doesn't
work!! No one at my software vendor's help desk can help me with this
problem. Does anyone know anything about preventing this??

Thank you!

Cheryl



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter & page number @ bottom of page Grace Page Layout 9 October 12th 05 06:38 AM
How do I create a Word form like corel WP merge documents? dlee_at_mmsgov Microsoft Word Help 2 October 8th 05 06:29 AM
Help to merge Image (Doug Robins?) JohnB Mailmerge 21 June 23rd 05 05:28 PM
Wordperfect Office 2000 conversion to Word 2003 MikeE New Users 1 March 21st 05 12:04 AM
How do I change the fillin field box code size in Word 2003? Diane Microsoft Word Help 1 January 24th 05 03:55 PM


All times are GMT +1. The time now is 01:21 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"