Hi Ture, how are things?
anyway that's what I do in the command window
I stuff the name of the printer into a variable but it aint working :-0
here a snag from my command window
x1= GETPRINTER()
?x1
SET PRINTER TO NAME (x1)
?SET('print',1)
peter
>
>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
Peter Cortiel