if wexist('Report Designer') release windows 'Report Designer' && try to close report preview window =MESSAGEBOX(wexist('Report Designer')) endifI actually put it twice just in case and in both cases the messagebox return .t. In other words, the window was not properly released. Is there a way to close Report Designer window, when preview is opened?