M
mog
I am having an annoying Issue with Word updating INCLUDEPICTURE
fields. I have a nested field setup, eg {INCLUDEPICTURE "{DOCPROPERTY
"headerA"} \*MERGEFORMAT} - ther custom DOCPROPERTY field is
populated by a piece of .NET code.
The issue is the following;
When I create a new document from the template containing the above
code, I can see that the code is part working as when I toggle to the
text view of the INCLUDEPICTURE code, the file name I would expect to
see as the source of the image is correct. The image itself however,
has not updated. If I move into the header field and select All and
then press F9, nothing changes. Nor if I do a print preview or what
ever. In order for the graphic to show, I must SAVE THE DOCUMENT, close
it, open it and then go in and press select all+ F9. this is obviously
a massive inconvenience, considering the document is created correctly
with the fields updated with the relavent values, why isnt the picture
actually showing until I save and reopen? I would like to find a
solution to this which doesnt involve writing VBA code in the Word
document itself, it would be massively preferable to achieve this from
the .NET code that drives the whole process.
Any ideas?
fields. I have a nested field setup, eg {INCLUDEPICTURE "{DOCPROPERTY
"headerA"} \*MERGEFORMAT} - ther custom DOCPROPERTY field is
populated by a piece of .NET code.
The issue is the following;
When I create a new document from the template containing the above
code, I can see that the code is part working as when I toggle to the
text view of the INCLUDEPICTURE code, the file name I would expect to
see as the source of the image is correct. The image itself however,
has not updated. If I move into the header field and select All and
then press F9, nothing changes. Nor if I do a print preview or what
ever. In order for the graphic to show, I must SAVE THE DOCUMENT, close
it, open it and then go in and press select all+ F9. this is obviously
a massive inconvenience, considering the document is created correctly
with the fields updated with the relavent values, why isnt the picture
actually showing until I save and reopen? I would like to find a
solution to this which doesnt involve writing VBA code in the Word
document itself, it would be massively preferable to achieve this from
the .NET code that drives the whole process.
Any ideas?