Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Importing a spreadsheet-like HTML file
Message
From
21/09/2006 15:21:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01155024
Message ID:
01156160
Views:
24
>Is it possible to import an HTML file, in a spreadsheet-like format, directly into a VFP table? It's not in the syntax of VFP7's import or copy to.
>
>I guess I need to manually convert it to XLS, or delim (or whatever) first?
>
>'ppreciate it
>
>Terry

Terry,
I quickly read the whole thread and you've come a long way as I see:) While automaing excel is fun you might not need it. To direct you to another long and winded path < g > I'd say also think of loading the HTM into a DocumentObjectModel and process it w/o putting Excel in between. Of course DOM processing might sound to be easier or harder than automating excel.
PS: Put oExcel.Visible = .t. early in code. It's a myth it would slow down (don't be surprised to see it's faster:). Also it has other advantages like allowing you to step your code, if something goes wrong kill excel application by simply closing excel etc.
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