lcPrinterName = GETPRINTER()
...
SET PRINTER TO NAME (lcPrinterName)
>I would like to send report directly to network printer.
>
>I am trying this way:
>
>I use GETPRINTER() do obtain the name of the printer.
>I save the printer name to a file.
>
>Depending on what kind of report the user wants to print it must do send to one printer or another.
>
>before report command I use SET PRINTER TO NAME printername. At this moment I receive the message 1958-Error Loading printer driver
>
>What am I doing wrong?
--sb--