Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting printer/fax destination using Word mailmerge.
Message
 
 
À
16/11/1998 19:50:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00158037
Message ID:
00158098
Vues:
21
>>loWord = GetObject(, "Word.Application")
>>loWord.ActivePrinter = "WinFax on LPT1:"
>>
>>HTH
>>
>>>Is it possible to switch the default printer/fax in Word through code when using mailmerge.
>
>
>Thanks for the info. The reason I'm attempting Mailmerge is because the formatting capabitities of the VFP Report designer are very limited. A field of variable length followed by label text will not be justified. But I'm having problems convincing my boss that providing a solution outside VFP (such as using Words' Mailmerge) is safe and won't be a compatibility issue in future releases of VFP or Office or VBA.
>
>I'm also interested in providing some sort of email solution using mailmerge. I thought of saving the generated documents in RTF format(which is readable with Wordpad) and then finding an activex control that would automatically send email with the file attached.

The UT libraries have classes that use mapi or the mapi session control to do exactly what you want (re:mailing)
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform