>i am using vfp 5, nu such thing as
>set('printer',3) gives error
>
Can't help you there - the best you can do AFAIK is to grab the name of the Default Windows printer using SET('PRINTER',2) when you start the application, save it somewhere, and then update the value whenever you change the default printer setting in your application, which is what I did prior to VFP6.