"%1 already exists." when opening older excel file

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
gordy
Posts: 4
Joined: Wed Oct 17, 2007 9:47 pm

"%1 already exists." when opening older excel file

Post by gordy »

happens when I try to open files saved as excel 95 or excel 4 workbook.
Traced it to XLSStream2.pas line 258

using version 3.01.02
gordy
Posts: 4
Joined: Wed Oct 17, 2007 9:47 pm

Post by gordy »

happens when trying to load .xlsx files created by excel 2007 as well
gordy
Posts: 4
Joined: Wed Oct 17, 2007 9:47 pm

Post by gordy »

seems to only happen with LoadFromStream
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

The file format is probably invalid. Excel 2007 files (*.xlsx) can't be opened, as those files are not supported yet.


Lars Arvidsson
gordy
Posts: 4
Joined: Wed Oct 17, 2007 9:47 pm

Post by gordy »

what about Excel 95 or Excel 4 workbook files?
you can reproduce this easily by saving a new Excel 95 file from Excel 2003 use a TFileStream to open the file then try to use XLSReadWriteII.LoadFromStream
Post Reply