GETPRINTER() only returns the name of a printer but doesn't capture it. Try this:
SET PRINTER TO NAME GETPRINTER()
HTH
>Hi Again,
>
>I have another problem about selecting printer thru GETPRINTER().
>
>I've set one Network printer as default on my machine (A deskjet), Now I want to print to another printer on the N/W (A dmp), Eventhough I select correct printer from the List,
>
>My reports are getting printed on the Default printer, how can I solve this.
>
>
>Thank you for yr help.
>
>Regards
>Shaishav
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.