Reply
 
Thread Tools Display Modes
  #1   Report Post  
Tricia Turner
 
Posts: n/a
Default IncludePicture breaks in Word 2K3

I have upgraded a test machine from Word 2K to 2K3 and am having problems
with IncludePicture. I have a VB app that uses the Word object model to do a
mailmerge using a SQL Server datasource to a new document and that document
is then printed. One of the fields in the main doc has an IncludePicture
field that takes a mergefield as its parameter, i.e. { INCLUDEPICTURE "{
MERGEFIELD SomeImagePath }" }. When I used this in Word 2K this would pull
in the image from the mergefield, but when I do the same thing using 2K3
nothing is pulled in.

If I look at the value after merging to a new document it looks like {
INCLUDEPICTURE "\\\\SomeServer\\SomeDir\\image.tif" } which appears correct
but when I Alt+F9 the image does not display (no File. The strange thing is
that if I right-click the field and choose "Edit Field..." and choose OK on
the dialog box without changing any other value the field still looks
exactly the same as described above but now the Alt+F9 will pull in the
correct image.

Does anyone have any ideas about what might be causing this? Thanks!





  #2   Report Post  
Peter Jamieson
 
Posts: n/a
Default

Does the picture display correctly if you select the field, F9, then Alt-F9
if necessary?

Generally speaking you have to check one or both of
Tools|Options|Print|Update fields and Update links, and/or select the
field(s) and execute the fields to ensure they are displayed.

Peter Jamieson
"Tricia Turner" wrote in message
...
I have upgraded a test machine from Word 2K to 2K3 and am having problems
with IncludePicture. I have a VB app that uses the Word object model to do
a mailmerge using a SQL Server datasource to a new document and that
document is then printed. One of the fields in the main doc has an
IncludePicture field that takes a mergefield as its parameter, i.e. {
INCLUDEPICTURE "{ MERGEFIELD SomeImagePath }" }. When I used this in Word
2K this would pull in the image from the mergefield, but when I do the same
thing using 2K3 nothing is pulled in.

If I look at the value after merging to a new document it looks like {
INCLUDEPICTURE "\\\\SomeServer\\SomeDir\\image.tif" } which appears
correct but when I Alt+F9 the image does not display (no File. The strange
thing is that if I right-click the field and choose "Edit Field..." and
choose OK on the dialog box without changing any other value the field
still looks exactly the same as described above but now the Alt+F9 will
pull in the correct image.

Does anyone have any ideas about what might be causing this? Thanks!







  #3   Report Post  
Tricia Turner
 
Posts: n/a
Default

Thanks for the response Peter. The picture does display correctly if I
manually update the fields. I already have tried the various combinations of
checking the Update fields and Update links but it makes no difference. The
thing I don't understand is that it still works fine in 2000 as is. Besides
checking these two options is there anything that I can set either through
the Word UI or the Word object model that will automatically update these
fields? As I stated before, this is an automated app so I need to eliminate
user intervention.

"Peter Jamieson" wrote in message
...
Does the picture display correctly if you select the field, F9, then
Alt-F9 if necessary?

Generally speaking you have to check one or both of
Tools|Options|Print|Update fields and Update links, and/or select the
field(s) and execute the fields to ensure they are displayed.

Peter Jamieson
"Tricia Turner" wrote in message
...
I have upgraded a test machine from Word 2K to 2K3 and am having problems
with IncludePicture. I have a VB app that uses the Word object model to do
a mailmerge using a SQL Server datasource to a new document and that
document is then printed. One of the fields in the main doc has an
IncludePicture field that takes a mergefield as its parameter, i.e. {
INCLUDEPICTURE "{ MERGEFIELD SomeImagePath }" }. When I used this in Word
2K this would pull in the image from the mergefield, but when I do the
same thing using 2K3 nothing is pulled in.

If I look at the value after merging to a new document it looks like {
INCLUDEPICTURE "\\\\SomeServer\\SomeDir\\image.tif" } which appears
correct but when I Alt+F9 the image does not display (no File. The
strange thing is that if I right-click the field and choose "Edit
Field..." and choose OK on the dialog box without changing any other
value the field still looks exactly the same as described above but now
the Alt+F9 will pull in the correct image.

Does anyone have any ideas about what might be causing this? Thanks!









  #4   Report Post  
Peter Jamieson
 
Posts: n/a
Default

The general changes to do with link updating may be relevant - see

http://support.microsoft.com/default...b;en-us;330079

Other than that, I think the only thing you can do is modify your automated
app. so that it outputs to a new document and does at least

ActiveDocument.Fields.Update

and if necessary updates all fields in all storyranges.

Peter Jamieson .
"Tricia Turner" wrote in message
...
Thanks for the response Peter. The picture does display correctly if I
manually update the fields. I already have tried the various combinations
of checking the Update fields and Update links but it makes no difference.
The thing I don't understand is that it still works fine in 2000 as is.
Besides checking these two options is there anything that I can set either
through the Word UI or the Word object model that will automatically
update these fields? As I stated before, this is an automated app so I
need to eliminate user intervention.

"Peter Jamieson" wrote in message
...
Does the picture display correctly if you select the field, F9, then
Alt-F9 if necessary?

Generally speaking you have to check one or both of
Tools|Options|Print|Update fields and Update links, and/or select the
field(s) and execute the fields to ensure they are displayed.

Peter Jamieson
"Tricia Turner" wrote in message
...
I have upgraded a test machine from Word 2K to 2K3 and am having problems
with IncludePicture. I have a VB app that uses the Word object model to
do a mailmerge using a SQL Server datasource to a new document and that
document is then printed. One of the fields in the main doc has an
IncludePicture field that takes a mergefield as its parameter, i.e. {
INCLUDEPICTURE "{ MERGEFIELD SomeImagePath }" }. When I used this in Word
2K this would pull in the image from the mergefield, but when I do the
same thing using 2K3 nothing is pulled in.

If I look at the value after merging to a new document it looks like {
INCLUDEPICTURE "\\\\SomeServer\\SomeDir\\image.tif" } which appears
correct but when I Alt+F9 the image does not display (no File. The
strange thing is that if I right-click the field and choose "Edit
Field..." and choose OK on the dialog box without changing any other
value the field still looks exactly the same as described above but now
the Alt+F9 will pull in the correct image.

Does anyone have any ideas about what might be causing this? Thanks!











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
Please give us REVEAL CODES like WORD PERFECT not reveal codes in. Rachel King Microsoft Word Help 38 August 21st 09 09:54 PM
Convert Word 2003 documents to WordPerfect formate Carol Microsoft Word Help 6 March 9th 06 07:11 AM
Macros - Keyboard Commands Janet Microsoft Word Help 6 April 11th 05 05:28 AM
letters - ask/fillin Caroline H New Users 2 February 25th 05 08:19 PM
how to convert wordperfect 5.0 floppy files to word pcoelho Microsoft Word Help 2 February 17th 05 06:55 PM


All times are GMT +1. The time now is 09:48 AM.

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"