lcPrinter=getprinter()
Set printer to name (lcPrinter)
>I need to send a report to a certain printer
>the default printr is lt's say 'send to onenote 2007' and a ctrl-p send the print job to the default printer
>
>now I do
> SET PRINTER TO NAME (GETPRINTER()) && i select '\\ott5\ricoh 7'
>
>now a
>?SET('print',1) stil prints 'c:\vAppTest\vCMC\send t0 onenote 2007'
>
>and a report form.... to print also sends to the default printer and not the one i just selected
>
>this needs to be done in code the user can't select a printer (print challenged!?!)
>
>any ideas?
>vfp9 sp2
>
>Peter