> If WExist("Printing...") > lPrinted = .T. > Endif >>The "Printing..." window only exists when VFP prints a report, not when during the preview. Be aware, though, that the window name is localized. The precise name depends on the VFP runtime language yoiu use in your application. Make sure, you only set the expression to .T. With someting like
>lPrinted = WExist("Printing...") >>the preview window would change the value back to .F. if the user first prints the report and then scrolls through entire preview.
_VFP.SetVar('lPrinted', SYS(2040)="2")