Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select printer and save printer name in a field
Message
From
22/03/2007 16:31:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/03/2007 16:28:03
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01207341
Message ID:
01207343
Views:
21
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform