Why don't you use getprinter() instead?
SET PRINTER TO NAME GETPRINTER()
OR
REPORT FORM [reportname] TO PRINTER PROMPT
Tracy
>Hi,
>
>I am using Commondailog Activex in my VFP application it's working fine.
>Issue is when i change printer from dialog it's changing default windows printer.
>
>Can we prevent this?
>
>There is property PrinterDefault, if its true it changes the default printer otherwise not. In case of PrinterDefault is false my crystal report does work as per printer selection.
>
>Any Idea.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"