Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening a Text File
Message
De
18/02/2003 05:17:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00754219
Message ID:
00754381
Vues:
13
>How do I open a txt file in excel from within foxpro trough automation?

You mean to open an SDF or delimited file ?
#DEFINE xlDelimited	1	
#DEFINE xlFixedWidth	2
lcDelimited = sys(5)+curdir()+'testme.txt'	
use customer
copy to (lcDelimited) type delimited
oExcel=createobject('Excel.Application')
with oExcel
  .Workbooks.OpenText(lcDelimited,,,xlDelimited)
  .visible = .t.
endwith
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