Search found 11 matches

by Midiar
Thu May 04, 2023 11:27 am
Forum: XLSReadWritwII 6
Topic: Produced xlsx file is rejected by EU service unless opened and resaved in Excel
Replies: 4
Views: 1107

Re: Produced xlsx file is rejected by EU service unless opened and resaved in Excel

I'd like to revisit this post of mine, for clarity: As mentioned, the last change (CompileFormulas+CalculateAndVerify) makes sure that the EU service accepts the calculated cells. But as it turns out that change also makes Excel complain that the file is corrupt. The problem was probably something r...
by Midiar
Mon Jan 23, 2023 12:45 pm
Forum: XLSReadWritwII 6
Topic: Produced xlsx file is rejected by EU service unless opened and resaved in Excel
Replies: 4
Views: 1107

Re: Produced xlsx file is rejected by EU service unless opened and resaved in Excel

Thanks, Lars, for replying to my email.

It all turned out to be about formula calculation.
The following 2 lines before saving the file, fixed it:

Code: Select all

    xls.CompileFormulas;
    xls.Formulas.CalculateAndVerify;
::tor
by Midiar
Wed Jan 11, 2023 2:16 pm
Forum: XLSReadWritwII 6
Topic: Produced xlsx file is rejected by EU service unless opened and resaved in Excel
Replies: 4
Views: 1107

Re: Produced xlsx file is rejected by EU service unless opened and resaved in Excel

These are the error message from the EU service, all very application specifi: 'Title of the project' - Compulsory field. Maximum length is 500 characters. 'Objectives of the project' - Compulsory field. Maximum length is 2500 characters. 'Potential benefits likely to derive from this project' - Com...
by Midiar
Tue Jan 10, 2023 2:07 pm
Forum: XLSReadWritwII 6
Topic: Produced xlsx file is rejected by EU service unless opened and resaved in Excel
Replies: 4
Views: 1107

Produced xlsx file is rejected by EU service unless opened and resaved in Excel

I'm producing an xlsx file that will be imported into an EU service. The problem is that the receiving service outputs a number of error messages about missing values. The values are not missing, and after I open the xlsx in Excel, and then save it again from there, it is imported without problems. ...
by Midiar
Wed Jun 06, 2018 7:06 am
Forum: XLSReadWritwII 6
Topic: 2 problems installing 6.00.38 in Delphi 10.2 Tokyo
Replies: 1
Views: 1484

2 problems installing 6.00.38 in Delphi 10.2 Tokyo

The worst is that after installation the Src\obj folder is missing it subfolder x64, for compiling Win64. I see that the Win32 obj files are binary identical to the ones in v5. Can I just copy over the x64 subfolder from v5 into v6? Besides, when installing I get an error saying the installer cannot...
by Midiar
Wed Aug 12, 2015 8:57 pm
Forum: XLSReadWritwII 6
Topic: ImportCSV picks up text content as date
Replies: 2
Views: 2096

Re: ImportCSV picks up text content as date

Thanks a lot! Worked like a charm.
by Midiar
Tue Aug 11, 2015 9:27 am
Forum: XLSReadWritwII 6
Topic: ImportCSV picks up text content as date
Replies: 2
Views: 2096

ImportCSV picks up text content as date

When I try to import a csv file with the following line in it (anonymised), the second cell is picked up as a date. That happens in ImportCSVInt, in the last check before defaulting to a text field. SysUtils.TryStrToDateTime is used to check if we have a datetime cell, but TryStrToDateTime skips any...
by Midiar
Tue Oct 22, 2013 6:29 am
Forum: XLSReadWritwII 6
Topic: Bug in XLSHTMLParse5.DecodeQuotedPrintable
Replies: 1
Views: 1189

Bug in XLSHTMLParse5.DecodeQuotedPrintable

The code in the for loop stretches beyond the length of the string: for i := 1 to Length(Result) - 1 do begin if (Result[i] = '&') and (Result[i + 1] = '#') and ((Length(Result) - i) >= 3) then begin I changed it to the following, and got rid of an error that occurred when importing mhtml xls fi...
by Midiar
Thu Apr 18, 2013 7:53 am
Forum: XLSReadWritwII 6
Topic: Possible error in TXLSColumn?
Replies: 1
Views: 1289

Possible error in TXLSColumn?

In XLSRow5 there is a comment to check for the IDE accidentally adding an FXF field to the TXLSRow class.

In my copy of 5.10.17 it looks like that has happened to the TXLSColumn object, causing an AV in TXLSFormattedObj.IsFormatted.
Is that right, or did I misunderstand?
by Midiar
Thu Apr 18, 2013 7:47 am
Forum: XLSReadWritwII 6
Topic: How to copy column format to other sheet
Replies: 2
Views: 1802

Re: How to copy column format to other sheet

Yes, it looked like it would be hard. So I took a more manual approach, and ended up with two routines that gave the desired result. EDIT: Or, actually I'm having AV trouble in the real app (not the test app). Looks like BeginEdit/EndEdit does not function like the usual BeginUpdate/EndUpdate, so I ...
by Midiar
Mon Apr 15, 2013 9:48 am
Forum: XLSReadWritwII 6
Topic: How to copy column format to other sheet
Replies: 2
Views: 1802

How to copy column format to other sheet

In XLSReadWriteII v4 I used TXLSColumn.Assign() to copy column formatting from a format sheet to the target sheet. In v5 the TXLSColumn doesn't have any Assign method. What is the best way to copy column formatting? Can I do it using TXc12Column and TXLSColumns.CopyHitList somehow? Looks like some o...