View Single Post
 
Old 10-04-2012, 02:48 PM
JohnFinNC JohnFinNC is offline Windows XP Office 2003
Novice
 
Join Date: Sep 2012
Location: North carolina
Posts: 6
JohnFinNC is on a distinguished road
Default Why all the "IF" statements?

Paul, your last response wasn't too helpful. I had already set up my database with fields for the jpg filename ( hence {MERGEFIELD "Filename"} ) and for the combined path and filename ( hence {MERGEFIELD "Picture"} ). I believe had already handled path and filename correctly.

The only method which works for me is a two-step process:

1. Position the insertion point and do "Insert Picture from File", except complete using the insert "Link to file" option. The result is like { INCLUDEPICTURE "DirectoryPhotos/Abels_Jon_1011_DSCF2804r.jpg" \* MERGEFORMAT \d }.

2.Next, replace the actual filename with the filename field, hence { INCLUDEPICTURE "DirectoryPhotos/{Mergefield "Filename"}" \* MERGEFORMAT \d }.

That said, I did implement your code, but with the two-step method above.

My template has twenty pictures on a page, so it resembles a sheet of labels. When I execute "Merge to New Document", I get six pages containing my 113 pictures. The only frustration is that the seven photos on the bottom of page five are repeated on the bottom of page six.

So...What are the purposes for your IF staements?

Thanks!


John

My template
Reply With Quote