Read Error with 3.0
Posted: Sun Jan 21, 2007 8:13 pm
I recently upgraded from my trusty old version 1.37 to the current 3.0, since the files written by 1.37 were not readable to the Excel version my primary client is using. In most respects the program changes required were simple, but we're hitting a problem that appears to be deep within the code of the 3.0 package (I'm using Delphi 5).
Any attempt to read a file written by the 1.37 package gets an error: "Error on reading record #92, 008C Offs: 00000981 [int] Unknown default record 008C." The message is the same no matter which of the older files we try to read, and I've single-stepped to pin the problem down to the ReadFromStream procedure inside the version 3.0 code.
For now we are working around it by using both the 1.37 and 3.0 packages in the same program, reading the files with XLSRead from 1.37 and writing them back out with 3.0, and that works. However I'd like to know whether I am doing something wrong in my code to read with 3.0, or if this is an obscure bug within the component. I can provide my program's code and a sample file if that's needed...
Any attempt to read a file written by the 1.37 package gets an error: "Error on reading record #92, 008C Offs: 00000981 [int] Unknown default record 008C." The message is the same no matter which of the older files we try to read, and I've single-stepped to pin the problem down to the ReadFromStream procedure inside the version 3.0 code.
For now we are working around it by using both the 1.37 and 3.0 packages in the same program, reading the files with XLSRead from 1.37 and writing them back out with 3.0, and that works. However I'd like to know whether I am doing something wrong in my code to read with 3.0, or if this is an obscure bug within the component. I can provide my program's code and a sample file if that's needed...