Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exporting to Excel5
Message
From
13/12/1999 10:54:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/12/1999 10:38:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00302717
Message ID:
00302755
Views:
25
>Cetin,
>
>>It's not fault of VFP but Excel. Excel5 had only 16384 rows. Try a copy with type xl8 or xls.
>
>Type xl8 is not valid on export, only on import.
>
>Kjell,
>
>xls and xl5 both have this limitation. The only way to export it is to break it into 16K chunks of records, and combine in excel after you have exported it, or to do OLE Automation to poke the records through.
>
>Cheers
>Steve Lea


You're right onlimitations :) Then this works as an easy alternative to combining chunks :
create cursor mytest (orderno i, ttime t, productname c(10))
for ix = 1 to 50000
 insert into mytest values (ix, datetime() - ix*5, "Prod"+padl(ix,5,"0"))
endfor
copy to myxls.xls type delimited with tab
oExcel = createobject("Excel.Application")
with oExcel
 .WorkBooks.Open(sys(5)+curdir()+"myxls.xls",)
 .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
Reply
Map
View

Click here to load this message in the networking platform