Avoid using "Ctrl+A" and "F9" to refresh Pictures before printing?

P

Pateril

I have written a program which exports merge fields to a master Word
Document (Office 2003 SP3). It can either merge to a master document
for further manual work by the user, or print directly to printer.

The snag is that this document includes an 'INCLUDEPICTURE' merge
field, to which I pass a path and file (variable) name to this which
is different for each record. I want to be able to send the results
direct to the printer, showing a different photo on each document,
however the only way I can do this successfully at present is to a)
merge to the master Document, b) Merge to a New Document, c) Press Ctrl
+A then F9 and finally, d) Print.

Merging straight to the Printer does not update the PIcture Fields,
although all the other fields (eg Name and addresses) are updated, so
the required picture is blank every time.

What I would like to do would be to somehow build in some code that
automatically does the Ctrl+A and F9 for me so that there is no need
for this manual intervention.

Any ideas how this could be done would be greatly appreciated!

Ian
 
M

macropod

Hi Pateril,

If you add a line like:
ActiveDocument.Fields.Update
to your codeprior to the printout line, the links should update.
 

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