Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.xls file from text file
Message
From
02/11/1999 07:40:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/11/1999 06:43:53
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00285341
Message ID:
00285350
Views:
21
>How can I create a .xls file from text file without using wizard.
>
>Thanks,
>Rajni


Rajni,
If text file is already a delimited (delimited with tab, comma, space or some other char) then you could directly open it with excel using the below code :
lcFileName = sys(5)+curdir()+"mytextfile.txt"
oExcel = createobject("Excel.application")
with oExcel
 .Workbooks.open(lcFileName, , , 6, , , , , ",") && Delimited with comma
 .visible = .t.
endwith
Otherwise first get it into a table then copy to text file type xls.
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