>It works fine. but now I have another question:
>If I used sys(1037) or getprinter() to change to another printer, how do I identify the new selected printer?
>
>Thanks
>
>>SET("PRINTER", 2) give you Windows default printer.
>>
>>HTH
>>
>>>Is there any way to know what´s the Windows default printer?
>>>APrinters() does not indicates wich of the installed printer is the default.
In VFP6, SET('PRINTER',3); I don't know of an equivalent under VFP5, so you'd need to track this in your application (doable with GETPRINTER(), since it returns a string name of the printer or a null string if cancelled, not with SYS(1037), which always returns a null string.)