Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select printer and save printer name in a field
Message
De
22/03/2007 16:31:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
22/03/2007 16:28:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01207341
Message ID:
01207343
Vues:
19
You can use getprinter() to have the user select a printer. This function will return an empty string if the user cancelled with ESC.

>Hi
>I want a user to select a printer from the installed printers and retain the printer name in a setup database field to be used later. I use the following now but cannot select network printers. Your input will be appreciated.
>*** init screen, shows in a combo box
>With Thisform.container2.combo1
> .RowSourceType= 5 && array
> .RowSource="ar_printers(Alen(ar_printers,1),1)"
> .DisplayValue=1
>ENDWITH
>** cPr printer name to be saved in the database.
>cPr= thisform.container2.combo1.value
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform