Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WebBrowser control, showing images
Message
De
28/11/2012 09:37:20
 
 
À
26/11/2012 07:16:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01558038
Message ID:
01558252
Vues:
55
>Hi
>
>I'm using the myControl.navigate("C:\MyFile.tif") method to attempt to view a document. However, VFP seems to be using Picture Viewer instead, i.e. opening the tif file outside of the VFP window/myControl. It works fine for .jpg, that is displayed within myControl, but not tifs.
>
>The same issue applies to Word and Excel too, they're both opened externally by VFP and not withing myControl.
>
>Any ideas?
>
>Regards

The file you are accessing needs to be a reference in a HTML format in a physical file. create a temporary file and reference it in the Navigate method.
TEXT TO lcImg NOSHOW TEXTMERGE
	<  HTML><  BODY>
	<Image src="C:\myimage\test.tif" />
	<\BODY><\HTML>
ENDTEXT
lcHTML = "C:\Temp\Img.html"
STRTOFILE(lcImg, lcHTML ,0)
myControl.Navigate(lcHTML)
DO WHILE myControl.ReadyState < 4
	DOEVENTS
ENDDO
ERASE (lcHTML) 
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform