>lcPrinter = getprinter()
>If Empty(lcPrinter)
> Report ... Preview
>Else
> Set printer to name (lcPrinter)
> Report form ... To Printer
>Endif
>
>Personally I prefer FoxyPreviewer, which holds the printer as a property, and can be configured more exactly to what I want.
FoxyPreviewer produces bad pdf files. Fields are placed in wrong positions in PDF. So I cannot use in in most cases.Andrus