>How can I get the name of the currently selected Windows printer? (VFP 5.0) SYS(1037) lets me change it, APRINTERS() puts the names of ALL the printers into an array and SET("PRINT",2) gives me the default printer name, but none of them do what I want.
>
>Thanks
>Elyse
Elyse,
I'm not sure of exactly what the problem is here. I assume that you're using SYS(1037) to make certain changes in the page settings, and you need to find out what they are. Look at the PRTINFO() function. You also might consider using the Common Dialogs ActiveX control. It sounds like part of the problem is that the SYS() function doesn't return a value, and GETPRINTER() doesn't do what you need. If this is the case, then the ActiveX control may be exactly what you need.
HTH,
George
George
Ubi caritas et amor, deus ibi est