Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with browser object
Message
 
 
To
30/11/2008 15:07:36
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01364734
Message ID:
01364942
Views:
17
Peter,

these code fragments are from some operational code of mine:
this.cHTMLFilename = "hqassign" + sys(2015) + ".htm"

set textmerge to (this.cHTMLFilename)
... html content written to file
set textmerge to

thisform.oIE.Navigate( FullPath( this.cHTMLFilename ) )
Do you have a NODEFAULT in the browser Refresh method?

>I have a form with a treeview and abrowser object
>
>I create the the html programmatically and save yi to file and navigete to it
>I get an error message with a tilte of Visial foxpro, no error message text and an OK button
>If I press the ok button it goes on but the html does not display. the browser control is empty
>
>I do the same kind of stuff in other places without this problem
>
>
>the html shows fine in expression web and IE
>
>I tried all sorts of things but am stuck
>
>Any ideas anybody
>
>here is the code:
>
>	lcTemp = FULLPATH([temp\])+[Mydiary]+ALLTRIM(oUser.username)+[.html]
>	IF FILE(lcTemp)
>		ERASE (lcTemp)
>	ENDIF
>	STRTOFILE(lcHTML,lcTemp) 
>	THISFORM.owb.navigate2(lcTemp)  && <-----   error happens here 
>		lnStartSeconds = SECONDS()
>		DO WHILE .ReadyState <> 4 ;
>				AND (SECONDS()-lnStartSeconds <= 1 )
>			DOEVENTS
>		ENDDO
>
>
>Thanks
>
>Peter
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform