Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does VFPxWorkbookXLSX work with old .XLS files? 1

Status
Not open for further replies.

Rajesh Karunakaran

Programmer
Sep 29, 2016
535
0
16
MU
Hi friends,

A simple query. I have been using VFPxWorkbookXLSX to work with .XLSX file... pretty good...!
However, when I try to open a .XLS file, both 'OpenXlsxWorkbook' and 'OpenXlsxWorkbookSheet' returns 0, i.e., it failed!

E.g:
Code:
oSource = NEWOBJECT("VFPxWorkbookXLSX", "VFPxWorkbookXLSX.vcx")
oSourceBook = oSource.OpenXlsxWorkbook('d:\temp\rajesh.xls')

Here, oSourceBook is 0.

Rajesh



Rajesh
 

VFPxWorkbookXLSX read XLSX files only. XLSX is a ZIP archive - then is simply extract files from zip archive and read data.
XLS is binary file.



mJindrova
 
Hi mJindrova

Yes, I saw that!
I have already converted the XLS into XLSX. Now, I will process it for my purpose.
Thanks.



Rajesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top