>I've been trying to figure out why reports are always printing to the default printer. I started with the following three commands.My expectation was that the SYS(2001,'PRINTER TO',2) would return the the name of the printer selected but is doesn't it returns the windows default printer consistently.
>
>lcPrinterName = GETPRINTER( )
>SET PRINTER TO NAME (lcPrinterName)
>? SYS(2001,'PRINTER TO',2)
>
>What am I missing here? Am I looking over something simple?
>
>TIA
>Jeff
Make sure that the "Save printer environment" isn't checked in the report properties.