Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open Excel sheet
Message
From
23/11/2004 07:11:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/11/2004 06:49:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00963741
Message ID:
00963778
Views:
8
>hi,
>thank you very much,it works.
>
>but can i open somthing as winword,html,xml...
>via same code as under..
>
>local lcXLSFile,lcTemp
>lcXLSFile = GETFILE() && allow user to find file hard code if you know where it is
>
>#define xlRangeAutoFormatColor2 8
>oExcel = createobject("Excel.Application")
>createobject(oExcel[, Excel, Winword , Html , Xml].Application)
>with oExcel
>.WorkBooks.Open(m.lcXLSFile)
>.Visible = .T.
>endwith
>
>
>
>
>thanks.
>best regards.
>m.qasem


Oh you want something to open it but do nothing with VFP. Then use ShellExecute:
declare long ShellExecute in "shell32.dll" ;
	long hwnd, string lpszOp, ;
	string lpszFile, string lpszParams, ;
    string lpszDir, long nShowCmd

ShellExecute(0,'Open',getfile(),'','',1)
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