Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Printing
Message
 
À
27/02/2009 09:59:26
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01384528
Message ID:
01384541
Vues:
45
>Hi,
>
>I am generating word documents through VFP. I want to print the word file on a printer which is not the default printer on the server.
>
>Is there anyone who has tried this thing.
>
>Many thanks in advance,
>Abhi

See if this help:

oWord.WORDBASIC.FILEPRINTSETUP(cPrinterName,0,0,1)

or follow Word VBA Help:
*---------------------
*This example makes a network HP LaserJet IIISi printer the active printer.
Application.ActivePrinter = "HP LaserJet IIISi on \\printers\laser"

*This example makes a local HP LaserJet 4 printer on LPT1 the active printer.

Application.ActivePrinter = "HP LaserJet 4 local on LPT1:"
*------------------------------------------------------------


Good Luck
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform