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: 228571 # Views: 23 # Ratings: 0
Version: Visual FoxPro 9 Category: Microsoft Office Automation
Date: Wednesday, May 20, 2009 12:10:46 AM         
   


> >
> > 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
>
> Isn't it:
>
> THISFORM.oleBrowser.Navigate2("file://h:\sharedsource\blank.htm") 

> ?
> I never used Browser control myself, so it may not work as well :-)
> -----------------
> 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.

Well, I am not totally senile - yet! ;-)

I added 2nd Browser control, made it of the same dimensions as the first (in FORM.Init), and show them in turns. Here's the code for cmdBrowser.Click():

LOCAL lcFile

lcFile = C_FILES.c_Dir + C_FILES.c_File

WITH THISFORM
   
   IF .oleBrowser.Visible
      .oleBrowser.Navigate2("about:blank")
      .oleBrowser1.Navigate2(lcFile)
      .oleBrowser1.Visible = .T.
      .oleBrowser.Visible = .F.
   ELSE
      .oleBrowser1.Navigate2("about:blank")
      .oleBrowser.Navigate2(lcFile)
      .oleBrowser.Visible = .T.
      .oleBrowser1.Visible = .F.
   ENDIF ()
   
ENDWITH

RETURN

"What d'ya think of that?" ;-) (Ian Gillan, "Anyone's Daughter" - http://lyricwiki.org/Deep_Purple:Anyone's_Daughter)
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