Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting if Report Preview is Open
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00811180
Message ID:
00811466
Views:
18
This message has been marked as the solution to the initial question of the thread.
Use the following code:
IF WEXIST('Report Designer')
 * Don't exit
ELSE
 * Exit
ENDIF
Cathy


>Is there a way to detect if the print preview window is open. I have an application toolbar with a close button (it has a door). When the print preview is open, sometimes, my users click on the Application Toolbar close button on accident and then after they close the report preview, the application shutsdown (as it is supposed to when they click on the application close button). I'm hoping to put a check in the application close button to make sure the print preview is not open, and if so, ignore the click on this button.
>
>Thanks
>Kirk
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform