Error openinng xls files.

Questions and answers on how to use XLSReadWriteII 5.

Error openinng xls files.

Postby AllanGMorris » Mon Jun 19, 2017 5:44 am

Hi,

I have an issue opening xls files (excel97-2003 format), I am getting a strange error of Missing Password and XLSX files are read OK without any issue.

I have tried to open with a specific version by setting the version:
SampleWorkbook:= TXLSReadWriteII5.Create(Nil);
SampleWorkbook.Filename := 'a.xls';
SampleWorkbook.Version:=xvExcel97;
SampleWorkbook.read;

and it still has an error??

Thanks
Allan
AllanGMorris
 
Posts: 5
Joined: Sat Dec 13, 2014 9:56 pm

Re: Error openinng xls files.

Postby larsa » Mon Jun 19, 2017 4:28 pm

Hello

Your code shall work ok. Can you send me the XLS file and I will take a look at it?
Lars Arvidsson, Axolot Data
larsa
Site Admin
 
Posts: 578
Joined: Mon Jun 27, 2005 9:30 pm


Return to XLSReadWritwII 6

Who is online

Users browsing this forum: No registered users and 1 guest

cron