Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Launch URL pointing to Tiff from VFP ?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01066380
Message ID:
01066384
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
Gary,

Download the file using URLDownloadToCacheFile or URLDownloadToFile API, or with some other ways. Then display it in Image control.

Something like this:
DECLARE INTEGER URLDownloadToCacheFile IN urlmon;
	INTEGER lpUnkcaller, STRING szURL, STRING @szFileName,;
	INTEGER dwBufLength, INTEGER dwReserved, INTEGER pBSC

LOCAL cRequest, cTargetFile
cRequest = "http://www.news2news.com/vfp/images/applecorp.jpg"
cTargetFile = Repli(Chr(0), 250)

= URLDownloadToCacheFile(0, cRequest, @cTargetFile,;
	Len(cTargetFile), 0,0)

cTargetFile = STRTRAN(cTargetFile, CHR(0),"")

IF FILE(cTargetFile)
	_screen.AddObject("img", "Image")
	WITH _screen.img
		.Left=50
		.Top=100
		.Picture=cTargetFile
		.Visible=.T.
	ENDWITH
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform