Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word MailMerge and pictures.
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00642172
Message ID:
00642275
Views:
12
>I am trying to create a MailMerge document from within VFP6.0 that switches between 2(or more) bitmaps depending on a merged data fields value. For example: One of the mailmerge fields is called "access_type". There are two values for access_type: VND and STD. For VND records I want picture "VND.BMP" to show and for STD records I want "STD.BMP" to show. The pictures do not reside in the database. I've tried using the macro recorder in Word, but the code I get is .ActiveDocument.MailMerge.Fields.AddIf(.Selection.Range, "access_type", wdMergeIfEqual, "VND", "", "MailMergeInsertIf3", "", "MailMergeInsertIf4")
>. How do I get to the code behind the "MailMergeInsertIfX" so I can put that back into the VFP side?

I think you'll be better off taking a look at the field that ends up in the Word document and trying to build it. Sounds like you're using an {IF}. Check out the AddIf method.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform