convert/ import XLSB / vfp9

Is there a utility to convert xlsb format to csv?  

Alternatively, is there library function that would let a VFP9 application read a XLSB format spreadsheet?

Thanks
randpincAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pcelbaCommented:
The recommended utility is Microsoft Excel.  You may use Office 365 suite which costs a few $$ monthly and convert whatever you need.

The way of doing it via FoxPro is more difficult and it will require certain programming skills...

Your options in Visual FoxPro are following:
1) ODBC driver
- download and install Access database engine (32 bit!) and use this code to read the XLSB file.
- you may also connect the XLSB file directly via SQLCONNECT() function and read it via SQLEXEC()

2) OLE Automation
- Open the locally installed Excel by CREATEOBJECT("Excel.Application")
- Open the workbook and read it cell by cell.
- More info: http://fox.wikis.com/wc.dll?Wiki~ExcelAutomation

To export FoxPro database table to CSV file is easy:
COPY TO SomeFile TYPE CSV
1
randpincAuthor Commented:
Thanks,

We need our VFP application to be able to read data from a XLSB spreadsheet into a cursor, and then process it.  

I think we will explore the ODBC options, and see if either of those gets us where we need to be.
0
pcelbaCommented:
ODBC driver is more suitable when you have simple XLS organized to fixed row x column matrix which is similar to DBF table and you may retrieve the whole worksheet by one SQL command.

OLE automation is more suitable when you need to read single cells in random order. It can also read large sheets in a loop but it is slow.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
randpincAuthor Commented:
thanks
0
jrbbldrCommented:
If you are not familiar with VFP Automation of Office/Excel, then I might suggest that you look at:
      Microsoft Office Automation with Visual FoxPro

Another BIG assist in learning what Automation steps need to be done is to first do what you want to do in Excel (alone with no VFP involved) while recording your actions as a Macro.
Then you can review/edit the Macro and find out what Excel did - then work that into your VFP Automation code.

Good Luck
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FoxPro

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.