Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yuri Rubinov
  Where is Yuri Rubinov?
 Philadelphia
 Pennsylvania - United States
 Yuri Rubinov
 To: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 Tags
Subject: RE: Clear Web Browser control - HOWTO?
Thread ID: 228552 Message ID: 228564 # Views: 25 # Ratings: 0
Version: Visual FoxPro 9 Category: Microsoft Office Automation
Date: Tuesday, May 19, 2009 10:10:01 PM         
   


> Colleagues,
>
> Say, you imbedded a Web Browser control to view files like PDF, DOC, XLS, BMP, JPG, etc. Let's say, you have a command button whose Click event procedure culminates in
>
>
THISFORM.oleBrowser.Navigate2(lcFile)

> All's fine and dandy if you are opening files like PDF, or PPS, or an image file - this control shows it right there. But let's say - your user, after bringing up a JPG, wants to "navigate" to a DOC file? And to display a DOC file, Web Browser goes out and opens this DOC file in MS Word (similar story with XLS files) - while that oleBrowser on your form still displays that JPG... So - how to clear that image file, or whatever, this browser was displaying at the moment when it was ordered to open XLS or DOC file?
>
> I tried to find if there's anything at least remotely resembling a "Clear" method in Web Browser control - and failed miserably.
>
> Could someone here gimme a hand?
>
> TIA!
>
> Regards,
>
> Ilya

Probably:

hi.olecontrol1.object.GoBack
or
hi.olecontrol1.navigate("")


Best Wishes,

Yuri Rubinov

ENTIRE THREAD

Clear Web Browser control - HOWTO? Posted by Ilya Rabyy @ 5/19/2009 9:53:44 PM
RE: Clear Web Browser control - HOWTO? Posted by Borislav Borissov @ 5/19/2009 9:57:02 PM
RE: Clear Web Browser control - HOWTO? Posted by Ilya Rabyy @ 5/19/2009 10:02:20 PM
RE: Clear Web Browser control - HOWTO? Posted by Stefan Wuebbe @ 5/19/2009 10:40:45 PM
RE: Clear Web Browser control - HOWTO? Posted by Ilya Rabyy @ 5/19/2009 11:18:40 PM
RE: Clear Web Browser control - HOWTO? Posted by tushar @ 5/20/2009 8:10:27 AM
RE: Clear Web Browser control - HOWTO? Posted by Borislav Borissov @ 5/19/2009 10:57:35 PM
RE: Clear Web Browser control - HOWTO? Posted by Ilya Rabyy @ 5/20/2009 12:10:46 AM
RE: Clear Web Browser control - HOWTO? Posted by Yuri Rubinov @ 5/19/2009 10:10:01 PM
RE: Clear Web Browser control - HOWTO? Posted by Ilya Rabyy @ 5/19/2009 10:23:15 PM
RE: Clear Web Browser control - HOWTO? Posted by Yuri Rubinov @ 5/20/2009 3:31:24 PM
RE: Clear Web Browser control - HOWTO? Posted by Ilya Rabyy @ 5/20/2009 5:15:58 PM
RE: Clear Web Browser control - HOWTO? Posted by Yuri Rubinov @ 5/20/2009 6:10:54 PM
RE: Clear Web Browser control - HOWTO? Posted by Ilya Rabyy @ 5/20/2009 6:20:19 PM
RE: Clear Web Browser control - HOWTO? Posted by Yuri Rubinov @ 5/20/2009 6:36:22 PM
RE: Clear Web Browser control - HOWTO? Posted by Ilya Rabyy @ 5/20/2009 7:01:51 PM
RE: Clear Web Browser control - HOWTO? Posted by Yuri Rubinov @ 5/20/2009 8:00:45 PM
RE: Clear Web Browser control - HOWTO? Posted by Ilya Rabyy @ 5/20/2009 8:13:30 PM
RE: Clear Web Browser control - HOWTO? Posted by Bernard Bout @ 5/21/2009 3:03:40 AM
RE: Clear Web Browser control - HOWTO? Posted by tom knauf @ 4/24/2014 10:19:37 AM