Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open Excel sheet
Message
De
23/11/2004 07:11:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/11/2004 06:49:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00963741
Message ID:
00963778
Vues:
7
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform