Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a page range in Word
Message
De
02/12/2005 11:14:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/12/2005 10:44:22
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01074259
Message ID:
01074274
Vues:
22
This message has been marked as the solution to the initial question of the thread.
>Hi,
>I create a Word object to produce a mail merge doc with anywhere from 1 to several hundred letters. It's produced as a single doc so the users can review the whole thing and maybe add some individual text to some letters before printing. Now we want to be able to print the individual letters to PDF and email them. My thought now is to spin through the doc file generating individual PDF docs for later distribution. The question is: How to print a page range to a specified printer? Any examples? Thanks.
>
>Gary

#DEFINE wdPrintRangeOfPages 4
lcPageList = "1,5,8-12,16"
oWord.ActivePrinter = getprinter()
oWord.ActiveDocument.Printout(.t.,,wdPrintRangeOfPages,,,,,1,m.lcPageList)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform