Search found 15 matches

by adrianosilva
Thu Jan 23, 2014 5:42 pm
Forum: XLSReadWritwII 6
Topic: "floating point division by zero" with AutoWidthCols
Replies: 18
Views: 11959

Re: "floating point division by zero" with AutoWidthCols

Hello,

With the latest update, 5.20.13, the problem was solved.
by adrianosilva
Thu Jan 23, 2014 11:13 am
Forum: XLSReadWritwII 6
Topic: "floating point division by zero" with AutoWidthCols
Replies: 18
Views: 11959

Re: "floating point division by zero" with AutoWidthCols

Hello larsa,

When I first reported the error I was using version 5.20.11 and I updated to version 5.20.12 and the error continued to occurs.
Now I'll update to version 5.20.13 and see what happens.
by adrianosilva
Wed Jan 22, 2014 1:21 pm
Forum: XLSReadWritwII 6
Topic: "floating point division by zero" with AutoWidthCols
Replies: 18
Views: 11959

Re: "floating point division by zero" with AutoWidthCols

Hello, The error occurs on file XLSColumn5.pas, line 328, in the procedure below: procedure TXLSColumn.SetPixelWidth(const AValue: integer); begin SetWidth(Round(Trunc((AValue - 5) / FOwner.FStyles.StdFontWidth * 100 + 0.5) / 100) * 256); end; AValue has a integer value greater than 0 and FOwner.FSt...
by adrianosilva
Thu Jan 16, 2014 10:20 am
Forum: XLSReadWritwII 6
Topic: "floating point division by zero" with AutoWidthCols
Replies: 18
Views: 11959

Re: "floating point division by zero" with AutoWidthCols

Hello, I'm using Delphi 7 and XLSReadWriteII 5.20.11. Code below: sFileName := ExtractFilePath(Application.ExeName) + '\TestXLS.xlsx'; sMsg := ''; Try xlsWorkbook.Clear; xlsWorkbook.Version := xvExcel2007; xlsWorkbook.Filename := sFileName; xlsWorkSheet := xlsWorkbook.Sheets[0]; xlsWorkSheet.AsStrin...
by adrianosilva
Tue Jan 14, 2014 4:28 pm
Forum: XLSReadWritwII 6
Topic: "floating point division by zero" with AutoWidthCols
Replies: 18
Views: 11959

Re: "floating point division by zero" with AutoWidthCols

Hello,

I updated to the latest version and got the same error.
by adrianosilva
Wed Jan 08, 2014 5:35 pm
Forum: XLSReadWritwII 6
Topic: Error executing command Calculate
Replies: 10
Views: 5991

Re: Error executing command Calculate

Hello,

The latest update solved the problem.

Tks.
by adrianosilva
Fri Jan 03, 2014 11:26 am
Forum: XLSReadWritwII 6
Topic: Error executing command Calculate
Replies: 10
Views: 5991

Re: Error executing command Calculate

Hello,

Any news on this issue?
by adrianosilva
Mon Nov 04, 2013 12:44 pm
Forum: XLSReadWritwII 6
Topic: Error executing command Calculate
Replies: 10
Views: 5991

Re: Error executing command Calculate

Hello, You just need to use the code below to reproduce the error: var sMsg : string; sFileName : string; xlsWorkSheet : TXLSWorksheet; begin sFileName := ExtractFilePath(Application.ExeName) + '\TestXLS.xlsx'; sMsg := ''; Try xlsWorkbook.Clear; xlsWorkbook.Version := xvExcel2007; xlsWorkbook.Filena...
by adrianosilva
Wed Oct 30, 2013 11:12 am
Forum: XLSReadWritwII 6
Topic: Error executing command Calculate
Replies: 10
Views: 5991

Re: Error executing command Calculate

Hello,

I tried to delete de cell, even clear the cell, and the error occurs the same way.
by adrianosilva
Tue Oct 29, 2013 5:07 pm
Forum: XLSReadWritwII 6
Topic: Error executing command Calculate
Replies: 10
Views: 5991

Re: Error executing command Calculate

And how can I clean the formula?
I put a code just to show you how the error is generated.
In my application I'm opening a Excel file created by other person using Excel.
When I open the file and try to recalculate I get the error "Formula is not compiled".

Best regards,

Adriano Silva
by adrianosilva
Wed Oct 23, 2013 1:04 pm
Forum: XLSReadWritwII 6
Topic: Error executing command Calculate
Replies: 10
Views: 5991

Re: Error executing command Calculate

Hello,

The error occurs even if I try to clear cell's content:

xlsWorkSheet.ClearCell(0, 2);
xlsWorkSheet.AsFormula[0, 2] := '';
xlsWorkSheet.AsFloat[0, 2] := 15;
xlsWorkbook.Calculate; // Here occurs the error.

Any news on this?

Best regards,

Adriano Silva
by adrianosilva
Mon Oct 07, 2013 7:08 pm
Forum: XLSReadWritwII 6
Topic: Error executing command Calculate
Replies: 10
Views: 5991

Error executing command Calculate

Hello, I found a error when calculating a workbook. If I try to put a value in a cell that was calculated and the formula has a error, I get the message "Formula is not compiled". Here is the code: var sMsg : string; sFileName : string; xlsWorkSheet : TXLSWorksheet; begin sFileName := Extr...
by adrianosilva
Mon Sep 02, 2013 1:28 pm
Forum: XLSReadWritwII 6
Topic: Password protection does not work on Excel97 workbook
Replies: 4
Views: 2919

Re: Password protection does not work on Excel97 workbook

Hello,

Do you have an expected date to when this problem will be solved?

Best regards,

Adriano Silva
by adrianosilva
Thu Aug 29, 2013 5:52 pm
Forum: XLSReadWritwII 6
Topic: Password protection does not work on Excel97 workbook
Replies: 4
Views: 2919

Password protection does not work on Excel97 workbook

Hello,

I tested the XLSReadWriteII5 sample FormatCells for Delphi to test cell protection and found that only works with Version=xvExcel2007.

Best regards,

Adriano Silva