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)