Pedter, That is the way I was thinking but I didn't really want to get involved in the source.... In fact the app is using FoxyPreview which makes it more daunting. I may post a question on Codeplex and see if they can come up with any ideas.
Dave -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Peter Cushing Sent: 15 January 2014 16:37 To: [email protected] Subject: Re: Quick ideas required... Dave Crozier wrote: > In my mainline program I have a global "survival class" that looks for the > existence of a particular file every few seconds. If that file is present > then the mainline gracefully closes down all the forms open at that time and > then exits VFP.... this works no problem except when a print preview screen > is open in which case the preview window doesn't close, in fact the mainline > class is never clicks into time mode to check for the file existence. > > Any quick ideas on how I can a) check for the existence of a print preview > window and b) close it automatically. I think the solution will be to add the > class into the report somewhere but I can't decide if this is the best > approach. > > Any ideas? > > This might be more work than you are looking for but just been looking at the help on print preview and found a section "Leveraging the Default Preview Container" where it looks like you have an extension handler class and maybe you can add a timer to the definition that will close it. HTH Peter ---------------------------------------------------------------- Rajan Imports has changed - we are now Whispering Smith Ltd. For more information see our website at www.whisperingsmith.com Please update your address book with my new email address: [email protected] . This communication is intended for the person or organisation to whom it is addressed. The contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email. www.whisperingsmith.com Whispering Smith Ltd Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700 Fax:0161 831 3715 London Office:17-19 Foley Street, London W1W 6DW Tel:0207 299 7960 [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

