>Sergey:
>
>I got it! But it doesn't work for me exactly as advertised.
>
>I could not get the code below to work with reference to "Print" but I got it to work with WIND1.
>
>_VFP.SETVAR("LLPRINTED", WEXIST("WIND1")) && this works
>
>I got WIND1 to work by defining a window as WIND1 then had the PRINT command work through WINDOW WIND1 as below.
>
>DEFINE WINDOW WIND1 FROM 1,3 TO 30,130
>REPORT FORM FINES1 TO PRINT PROMPT NOCONSOLE WINDOW WIND1
>
>With these modifications the value of llPrinted is only .t. if the Print process completes.
>
>So I am out of the woods. Thanks for your help.
>
>Mike Smith
You'll always get .T. because window WIND1 is defined before running report. The name of the window dispalyed during report printing is "Printing..." not "Print".
_VFP.SetVar("llPrinted", WEXISTS("Printing..."))
--sb--