Search found 7 matches

by markjforte
Tue Feb 21, 2017 6:25 pm
Forum: XLSReadWriteII 3/4/5
Topic: TXLSWorksheet.InsertRows Bug
Replies: 1
Views: 7401

TXLSWorksheet.InsertRows Bug

Hi, I discovered what I believe to be a bug inTXLSWorksheet.InsertRows. To reproduce: 1) Create an Excel spreadsheet, populate cells A1 through A3 (ex: put in "Row1", "Row2", "Row3"), save as Book1.xls. 2) Create new Delphi project with code: procedure TForm1.FormShow(S...
by markjforte
Thu Jan 30, 2014 8:57 pm
Forum: XLSReadWritwII 6
Topic: Global Variables
Replies: 1
Views: 2146

Global Variables

Hi Lars, I'm still migrating code from XLSReadWrite and XLSReadWriteII 2.0 to XLSReadWriteII 5.0, and I came across a very difficult error to debug. After struggling for 6-8 hours, I believe I found the general cause, which appears to be due to the use of global variables. Our code in question makes...
by markjforte
Thu Jan 23, 2014 12:35 am
Forum: XLSReadWritwII 6
Topic: "OPC is allready open" Fix
Replies: 4
Views: 3140

Re: "OPC is allready open" Fix

Hi Lars, Again, I'm not hiding any exceptions. If an exception occurs in the OnReadCell event, for whatever reason (typically due to some bad data in the spreadsheet that the user created), that exception should bubble up... For an application with a UI, it should become an exception dialog (we actu...
by markjforte
Tue Jan 21, 2014 5:51 pm
Forum: XLSReadWritwII 6
Topic: "OPC is allready open" Fix
Replies: 4
Views: 3140

Re: "OPC is allready open" Fix

Hi Lars, I believe you need to look at the code change I made again. It does not catch the exception, nor does it hide it. I added a try finally, to make sure that FManager.FileData.OPC.Close is called. If that call is not made, then the OPC is left open, thereby causing subsequent attempts to read ...
by markjforte
Tue Jan 21, 2014 2:36 am
Forum: XLSReadWritwII 6
Topic: "OPC is allready open" Fix
Replies: 4
Views: 3140

"OPC is allready open" Fix

Hi Lars, I'm finally migrating my code from your old TXLSRead to TXLSReadWriteII5, and thus I'm using DirectRead=True. If my code throws an exception in OnReadCell, the TXLSReadWriteII5 component is left in a bad state. The next time the user tries to read a spreadsheet, they get an error: "OPC...
by markjforte
Fri Dec 27, 2013 6:15 pm
Forum: XLSReadWritwII 6
Topic: Compiler Warnings / Possible Bugs?
Replies: 0
Views: 2318

Compiler Warnings / Possible Bugs?

Hi Lars, We are finally upgrading to your XLSReadWriteII 5 (version 5.20.10... note that we bought 5 upgrade licences back in April, but we are only now finding the time to upgrade), and when I build with your source, I see some concerning compiler warnings. 1) [Warning] BIFF_ReadII5.pas(2906): Vari...
by markjforte
Thu Dec 06, 2012 8:25 pm
Forum: XLSReadWriteII 3/4/5
Topic: XLSReadWriteII 5 - Delphi 6 to Delphi 2010
Replies: 1
Views: 5000

XLSReadWriteII 5 - Delphi 6 to Delphi 2010

Hi, we are currently using Delphi 6 with XLSReadWriteII 2.02.35, and we are now in the process of migrating our code to Delphi 2010 (We bought licenses for 2010 2 years ago, but haven't had any time to use it. If and when we get migrated to 2010, we'll then probably go ahead and buy licenses for XE3...