Erik,
You can use aprinters() to populate an array that can be used as the rowsource for a listbox. There are cases where the name of the printer will begin with a backslash (\\server1\printer1, for example). You'll need to loop through the array and add a space to the beginning of those entries, so they won't be disabled in the listbox.
Before printing the report, you can use the following syntax, where the variable lcPrinter contains the name of the printer the user selected. Make sure to use alltrim() to trim off any spaces you may have added to the array.
set printer to name (lcPrinter)
>Hi,
>Is it possible to display the list of printers added on my computer. For example, i have added an HP Laserjet printer which is located over the network. An Epson printer which is connected on my computer was also added .
>So I have two printers, I can see these printers using Windows 2000 by clicking the Start.. Settings.. Printers.
>
>1. How do I display these printers on my form.
>2. When displayed in a grid, I want to have a button with a caption "Set As Default". How do I make that button function, so that when it is clicked, It will automatically make the selected printer, the Default Printer.
>
>Thanks in advance everyone!
>
>Erik
Steve Gibson