Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change FoxPro default printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2016
Application:
Desktop
Divers
Thread ID:
01650416
Message ID:
01650425
Vues:
47
>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 ?

Now you realize why I wrote the library I wrote.
Before you try this:
sys(1500,'_mfi_sysprint','_mfile')

You have the same problem. No printer name returned.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform