Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display filenames with double click opening the file
Message
From
19/09/2005 07:16:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/09/2005 05:53:03
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01050800
Message ID:
01050804
Views:
15
>Hi
>i need to display filenames on a screen with the capability of double clicking on the filename which in turn should open the file like outlooks attachment control
>
>can that be done in VFP?
>PS:
>I use the browser control, it shows the filename but clickin on it won't open it.
>This is my html in the browser document:
>
>TEXT TO THISFORM.lcHTML NOSHOW TEXTMERGE
><html>
>
><head>
><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
><title>New Page 1</title>
></head>
>
><body>
>
><p><a href="file://<<thisform.business.data.cAttach>>">
><<thisform.business.data.cAttach>></a></p>
>
></body>
>
></html>
>ENDTEXT
>XINDEX=ADDBS(SYS(5)+SYS(2003))+"HTML\FILENOTES\INDEX.HTM"
>
>WITH thisform.pgf1.page2.oWB
>	.Navigate(XINDEX)
>	lnStartSeconds = SECONDS()
>	DO WHILE .ReadyState <> 4 ;
>			AND (SECONDS()-lnStartSeconds <= 1 )
>		DOEVENTS
>	ENDDO
>	.DOCUMENT.OPEN()
>	.DOCUMENT.WRITE(thisform.lchtml)
>	.DOCUMENT.CLOSE()
>	.visible=.t.
>ENDWITH
>
>
>
>
>
>
>
>Thanks
>
>Peter

Peter,
Not sure if this is what you mean:

.Navigate2('file://c:\')

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform