Search found 133 matches

by d3nton
Fri Apr 17, 2015 8:38 am
Forum: XLSReadWritwII 6
Topic: Text '_x3hhM_' leads to corrupt xlsx file
Replies: 7
Views: 4188

Re: Text '_x3hhM_' leads to corrupt xlsx file

Hi! I have a similar problem with excel 2013 when i add a string like "test_xflat_test.txt" to an excel file (leads to a corrupt excel file) and solved the problem with a simple regex. The main problem is that excel encodes strings with "_x + Hex value + _" (and only these string...
by d3nton
Thu Oct 23, 2014 9:13 am
Forum: XLSReadWritwII 6
Topic: Invalid xlsx hyperlinks in Office 2007
Replies: 12
Views: 6917

Re: Invalid xlsx hyperlinks in Office 2007

Thank you!
by d3nton
Mon Oct 20, 2014 11:47 am
Forum: XLSReadWritwII 6
Topic: Invalid xlsx hyperlinks in Office 2007
Replies: 12
Views: 6917

Re: Invalid xlsx hyperlinks in Office 2007

Thank you! But the fix seems not to be correct. I think % must be treated like this: %': begin if (StrToIntDef('$'+Copy(ALink,i + 1,2),MAXINT) = MAXINT) and not (Copy(ALink,i + 1,2)= '25') then Result := Result + '%25' else Result := Result + ALink[i]; end; You need '$' because the values are stored...
by d3nton
Mon Oct 13, 2014 11:50 am
Forum: XLSReadWritwII 6
Topic: Invalid xlsx hyperlinks in Office 2007
Replies: 12
Views: 6917

Re: Invalid xlsx hyperlinks in Office 2007

Hi! I am sorry, that I have to open this ticket again but there is still a problem with the hyperlinks. The function TXLSHyperlink.EncodeFileHLink, which obviously handles the hyperlink addresses, is called each time I create a hyperlink. But it is also called if I read the file which corrupts some ...
by d3nton
Fri Sep 05, 2014 7:54 am
Forum: XLSReadWritwII 6
Topic: Delphi XE7 support.
Replies: 2
Views: 1915

Delphi XE7 support.

Hi!

Are there any plans to support Delphi XE7?

Best regards
d3nton.
by d3nton
Fri May 16, 2014 7:57 am
Forum: XLSReadWritwII 6
Topic: Count numberformats?
Replies: 1
Views: 1369

Re: Count numberformats?

Okay. I found the property :-) xlsfile.Manager.StyleSheet.NumFmts.Count can be used to check if a new format can be added: if (xlsfile.Manager.StyleSheet.NumFmts.Count < 256) then begin xlsfile.CmdFormat.BeginEdit(psheet); xlsfile.CmdFormat.Number.Format := pNumberFormat; xlsfile.CmdFormat.Apply(pCo...
by d3nton
Fri May 16, 2014 6:55 am
Forum: XLSReadWritwII 6
Topic: Count numberformats?
Replies: 1
Views: 1369

Count numberformats?

Hi! To apply a specific formatting to an excel cell i use e.g self.CmdFormat.BeginEdit(psheet); self.CmdFormat.Number.Format := pNumberFormat; self.CmdFormat.Apply(pColumn, pRow); It seems that there is a limitation of different formats for an excel file (or maybe a single excel sheet, i'm not sure)...
by d3nton
Tue Mar 04, 2014 11:14 am
Forum: XLSReadWritwII 6
Topic: Invalid xlsx hyperlinks in Office 2007
Replies: 12
Views: 6917

Re: Invalid xlsx hyperlinks in Office 2007

In the current release 5.20.17 the xlsx files are corrupted in Excel2007 for UNC path hyperlinks with empty spaces. In XLSHyperlinks5.pas TXLSHyperlink.SetAddress the hyperlink is not encoded for UNC paths: line 265: else if BeginWith('\\') then begin FHyperlinkType := xhltUNC; end ... FAddress := S...
by d3nton
Tue Mar 04, 2014 8:52 am
Forum: XLSReadWritwII 6
Topic: Chinese character leads to corrupt xlsx file
Replies: 8
Views: 5974

Re: Chinese character leads to corrupt xlsx file

There are 66 Noncharacters (some in the unicode basic plane, some in the supplementary plane): http://www.unicode.org/faq/private_use.html#noncharacters http://en.wikipedia.org/wiki/Unicode#Character_General_Category These characters corrupt the xlsx files. Nocharacters in delphi are represented e.g...
by d3nton
Fri Feb 28, 2014 10:06 am
Forum: XLSReadWritwII 6
Topic: Wrong timestaps in XLSX files.
Replies: 5
Views: 2576

Re: Wrong timestaps in XLSX files.

Microsoft is really inconsistent in saving date values in the docprops such as 'created' and 'modified' dates. I found out that the 'modified' date is saved in UTC whereas other time values like 'created' are saved as local time. A fix can be implemented in XC12Manager5.pas. You can use the SystemTi...
by d3nton
Fri Feb 28, 2014 9:42 am
Forum: XLSReadWritwII 6
Topic: Wrong timestaps in XLSX files.
Replies: 5
Views: 2576

Re: Wrong timestaps in XLSX files.

Hello.

I seems that there is still a small bug in V5.20.18
In my timezone (UTC +1:00) the 'Date last saved' is currently 1 hour ahead.
E.g. instead of 9:00 (the current time) it is 10:00. Other Dates like creation date or modified date are correct.
by d3nton
Tue Feb 18, 2014 7:23 am
Forum: XLSReadWritwII 6
Topic: Chinese character leads to corrupt xlsx file
Replies: 8
Views: 5974

Re: Chinese character leads to corrupt xlsx file

Hi! Okay. I moved the characters via copy paste to excel and saved the file as xlsx (->the file contains the invalid character buit is not corrupted). Aftgerwards I extracted the xlsx file (created in excel). Compared to the xml created by XLSReadWrite there is a small difference.: Excel appended a ...
by d3nton
Tue Jan 28, 2014 1:08 pm
Forum: XLSReadWritwII 6
Topic: Floating point error during hyperlink creation
Replies: 2
Views: 1457

Re: Floating point error during hyperlink creation

Thank you. I guess you mean 5.20.13?! It works now. But it seems that the changes in TXLSHyperlink.SetAddress: if IsURL(Value) or BeginWith('www.') then begin // if BeginWith('http://') or BeginWith('https://') or BeginWith('www.') or BeginWith('ftp://') then begin FHyperlinkType := xhltURL; S := En...
by d3nton
Fri Jan 17, 2014 8:19 am
Forum: XLSReadWritwII 6
Topic: Floating point error during hyperlink creation
Replies: 2
Views: 1457

Floating point error during hyperlink creation

Hi! I got a floating point error on hyperlink creation (xls and xlsx) for the following hyperlink (XLSReadWrite 5.20.12): I know that the hyperlink is not valid in windows but we use these kind of hyperlinks in another context, so it would be nice if the the file would be created correctly. Issue se...
by d3nton
Fri Jan 17, 2014 8:08 am
Forum: XLSReadWritwII 6
Topic: Xls/Xlsx file author
Replies: 10
Views: 3905

Re: Xls/Xlsx file author

Yes, thanks. Works for me now.