Search found 133 matches

by d3nton
Tue Sep 08, 2015 7:04 am
Forum: XLSReadWritwII 6
Topic: Setting cell sizes is very inaccurate.
Replies: 3
Views: 2426

Re: Setting cell sizes is very inaccurate.

Hello! Thank you, but the values seem not to be correct. If I set the pixelwidth2 of a column to e.g.500 pixels and open the file afterwards, excel tells me that the width of the column is 497 pixels. This is only a minor issue if i format just one column but i need to format lots of columns and the...
by d3nton
Thu Sep 03, 2015 1:15 pm
Forum: XLSReadWritwII 6
Topic: Problem reading excel files with images
Replies: 21
Views: 25510

Re: Problem reading excel files with images

Hi!
Can you reproduce the problem with the code and the image file above?
by d3nton
Thu Aug 20, 2015 1:01 pm
Forum: XLSReadWritwII 6
Topic: Problem reading excel files with images
Replies: 21
Views: 25510

Re: Problem reading excel files with images

Here is a screenshot of the result (if I open the text.xlsx file in excel):
http://workupload.com/file/J3HKJR9d
by d3nton
Thu Aug 20, 2015 12:49 pm
Forum: XLSReadWritwII 6
Topic: Problem reading excel files with images
Replies: 21
Views: 25510

Re: Problem reading excel files with images

Yes, of course. I can reproduce it with every image. The easiest way to see the problem is to create a jpg with a colored square in Ms Paint and add this to an excel file using the code above. -> The square is stretched to an rectangle (open the created text.xlsx and right click on the image in the ...
by d3nton
Fri Aug 07, 2015 2:05 pm
Forum: XLSReadWritwII 6
Topic: Setting cell sizes is very inaccurate.
Replies: 3
Views: 2426

Setting cell sizes is very inaccurate.

If I set the pixelSize of a row or column the width or height of the column/row is very inaccurate. It seems also to be very inconsistent. Small example: XLS := TXLSReadWriteII5.Create(nil); XLS.Filename := 'D:\test.xlsx'; .... XLS[0].Columns[0].PixelWidth := 64 <-results in '56'. ... for i = 0 to 1...
by d3nton
Fri Aug 07, 2015 11:18 am
Forum: XLSReadWritwII 6
Topic: Problem reading excel files with images
Replies: 21
Views: 25510

Re: Problem reading excel files with images

In addition to my last comment regarding the stretched images: If I manually correct the scaling via excel (via right click on the image -> Size and Properies > reset ) and compare the changes in the xml structure of the file I can see differences in xl/drawing1.xml: The excel file which is produced...
by d3nton
Tue Jul 28, 2015 12:26 pm
Forum: XLSReadWritwII 6
Topic: Integer Overflow
Replies: 9
Views: 5373

Re: Integer Overflow

You can solve it by temporarily turning of range checks and overflow checks in unit xpgPXML.pas function TXpgReadXML.QNameHashA: longword; {$IFOPT R+} {$DEFINE R_PLUS} {$RANGECHECKS OFF} {$ENDIF} {$IFOPT Q+} {$DEFINE Q_PLUS} {$OVERFLOWCHECKS OFF} {$ENDIF} function TXpgReadXML.QNameHashB: longword; v...
by d3nton
Tue Jul 28, 2015 8:18 am
Forum: XLSReadWritwII 6
Topic: Problem reading excel files with images
Replies: 21
Views: 25510

Re: Problem reading excel files with images

1. Okay, thanks for the clarification. 2. Yes, I am sorry, I forgot that line in the code example. Stupid mistake :) 3. Thanks, works now! Nevertheless there seems to be some unexpected results in some cases or I am doing something wrong: 1. When I write an image with scale factor 1, the image is al...
by d3nton
Thu Jul 23, 2015 11:14 am
Forum: XLSReadWritwII 6
Topic: Problem reading excel files with images
Replies: 21
Views: 25510

Re: Problem reading excel files with images

There seems to be several issues regarding images in excel files: 1. XLS.IsEmpty function returns true for both XLS and XLSX: procedure TForm1.Button1Click(Sender: TObject); var XLS: TXLSReadWriteII5; begin XLS := TXLSReadWriteII5.Create(nil); XLs.Filename := 'D:\test.xlsx'; XLS.Insert(0); XLS.Items...
by d3nton
Fri Jul 17, 2015 1:54 pm
Forum: XLSReadWritwII 6
Topic: Problem reading excel files with images
Replies: 21
Views: 25510

Problem reading excel files with images

Hi! I am using the latest version 5.20.51: Reading an existing excel file that contains an image does not work. Repro is simple: Just create an excel file with an image and try to read the file: lExcelFile := TXLSReadWriteII5.Create(nil); lExcelFile.Filename := 'C:\test\test.xlsx'; lExcelFile.Read; ...
by d3nton
Tue Jun 16, 2015 2:34 pm
Forum: XLSReadWritwII 6
Topic: AccessViolation in TXLSMMURebuildVector.WriteVector
Replies: 2
Views: 2028

Re: AccessViolation in TXLSMMURebuildVector.WriteVector

I have updated to 5.20.50 and I can no longer reproduce the problem. So it seems to be fixed due to some other changes I guess :)
by d3nton
Fri Jun 12, 2015 12:07 pm
Forum: XLSReadWritwII 6
Topic: AccessViolation in TXLSMMURebuildVector.WriteVector
Replies: 2
Views: 2028

AccessViolation in TXLSMMURebuildVector.WriteVector

Hi! Recently we received several bugreports from our customers with the following callstack: Exception Message : Access violation at address 000000000103EB8E in module 'Project.exe'. Write of address 000000000000000D. 350 1791 Project.exe XLSMMU5 TXLSMMURebuildVector.WriteVector +56 714 930 Project....
by d3nton
Fri May 22, 2015 8:35 am
Forum: XLSReadWritwII 6
Topic: Text '_x3hhM_' leads to corrupt xlsx file
Replies: 7
Views: 4191

Re: Text '_x3hhM_' leads to corrupt xlsx file

Unfotunately still problems with some values which needs more than one value to escape like: test_x1111__xfabc_ which should be escaped two times -> test_x0005F_x1111_x0005F_xfabc_ but this is not done. If there is no easy fix without a regex, maybe you could use the regex solution with {$if Compile...
by d3nton
Thu May 21, 2015 2:00 pm
Forum: XLSReadWritwII 6
Topic: AutoWidthCol does not work properly with user defined format
Replies: 1
Views: 1915

AutoWidthCol does not work properly with user defined format

Hi. I am using v5.20.49 and use the AutoWidthCol function to adjuste the cell width of user defined cells like '125,5 KB'. Unfortunately most of the time the widest cell is cut of a bit. I have debuged the code and the problem is caused by a wrong while loop in XLSMask5.pas function TExcelMask.Forma...
by d3nton
Fri May 15, 2015 9:42 am
Forum: XLSReadWritwII 6
Topic: Text '_x3hhM_' leads to corrupt xlsx file
Replies: 7
Views: 4191

Re: Text '_x3hhM_' leads to corrupt xlsx file

Thanks for your fix. Unfortunately your solution without regex seems to be wrong (50.20.48). Our xlsx unit tests fail since
strings like "test_x1001_test" is not escaped to "test_x005F_x1001_test" like expected.