PRB: Execution of REPORT FORM Command Sets Focus to ApplicationLast reviewed: December 4, 1997Article ID: Q177260 |
The information in this article applies to:
SYMPTOMSExecuting a REPORT FORM command while an application is running minimized, sets focus to the application and restores the application's window. After the REPORT FORM command finishes executing, the application loses focus and continues running minimized.
RESOLUTIONSetting the visible property of the form to false before the REPORT FORM command is executed prevents the form from being restored and displayed on screen. The following code snippet illustrates changing the visible property before and after a REPORT FORM command is encountered. In the example below, this code would appear in the Timer Event method of the timer object.
ThisForm.Visible=.F. REPORT FORM prtsrv FOR RECNO() < 5 TO PRINT NOCONSOLE NOWAIT ThisForm.Visible=.T. STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONWhen an application compiled with Visual FoxPro version 5.0 is running as a minimized background process and a REPORT FORM command is encountered, the application's window is restored from its minimized state and displayed on screen. After the REPORT FORM command has finished executing, the application's window is minimized and the application continues executing as a background process. Applications compiled with Visual FoxPro version 3.0 that are running as a minimized background process remain minimized when a REPORT FORM command is encountered.
Steps to Reproduce Behavior
|
Additional query words: VFoxWin form print visible timer
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |