Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a Text File
Message
From
18/02/2003 05:17:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00754219
Message ID:
00754381
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform