>I would like to know how I can set any installed Windows Printer as the current printer for VFP and for Windows, I used Getprinter but did not work. Is very important, I am finishing an application and this one is the last thing to terminate it. Tia
>
>Luis Guerra
Luis,
Take the value returned from GetPrinter and use the SET PRINTER TO command, for example;
LOCAL lcPrinter
lcPrinter = GetPrinter()
IF NOT EMPTY( lcPrinter )
SET PRINTER TO "&lcPrinter"
ELSE
* The suer pressed escape in GetPrinter
ENDIF