Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 To: Borislav Borissov
  Where is Borislav Borissov?
 Sofia
 Bulgaria
 Borislav Borissov
 Tags
Subject: RE: Clear Web Browser control - HOWTO?
Thread ID: 228552 Message ID: 228561 # Views: 27 # Ratings: 0
Version: Visual FoxPro 9 Category: Microsoft Office Automation
Date: Tuesday, May 19, 2009 10:02:20 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
>
> How about to navigate to "about:blank"?
> Or create an empty HTML on the fly and navigate browser to it?
>
> -----------------
> Borislav Borissov
>
> Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
> The only thing normal about database guys is their tables.

Bleen!
So simple, like anything truly genious!

... except that it ain't working: it still displays that previous doc. Maybe I'm Missing something? Here's the code (and - yes, Blank.HTM does exist):

THISFORM.oleBrowser.Navigate("h:\sharedsource\blank.htm")

LOCAL lcFile

lcFile = C_FILES.c_Dir + C_FILES.c_File

THISFORM.oleBrowser.Navigate(lcFile)
RETURN




Regards,

Ilya

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