Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change FoxPro default printer
Message
De
19/04/2017 10:25:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
How to change FoxPro default printer
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2016
Application:
Desktop
Divers
Thread ID:
01650416
Message ID:
01650416
Vues:
46
Iäm looking for changing default printer for report printing so that user selected printer name can logged

I tried code from http://fox.wikis.com/wc.dll?Wiki~Win32API~Wiki
? "Printer ", SET("Printer",2)
LOCAL loComDialog as mscomdlg.commondialog
loComDialog = newobject( "mscomdlg.commondialog" )
?  loComDialog.ShowPrinter()
? locomdialog.PrinterDefault
? "Printer ", SET("Printer",2)
but it does not output printer name selected from printer dialog.
There is no PrinterName property in loComDialog.

How to get printer name which is selected by user in ShowPrinter dialog ?
Andrus
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform