Search found 11 matches

by GenasysCarl
Tue Jul 10, 2018 1:58 pm
Forum: XLSReadWritwII 6
Topic: Error when opening xlsx workbook containing a Pivot
Replies: 1
Views: 3517

Error when opening xlsx workbook containing a Pivot

Hi After populating and saving a xlsx workbook, containing a Pivot, we get the below error when opening the saved file in excel. Removed Part: /xl/pivotTables/pivotTable1.xml part with XML error. (PivotTable view) No attribute name may appear more than once in the same start tag or empty element tag...
by GenasysCarl
Fri Apr 20, 2018 10:54 am
Forum: XLSReadWritwII 6
Topic: XLS file corrupt after deleting sheets
Replies: 3
Views: 2129

Re: XLS file corrupt after deleting sheets

Hi Lars, When my XLS file loads, it finds a named item with 'xsntNone' type. I am not sure what this is, but it is in the report template created by a user so it is outside my control. You can get a cleaned copy (28kb) of the XLS here: http://s000.tinyupload.com/index.php?file_id=5954232225671672006...
by GenasysCarl
Tue Apr 10, 2018 3:19 pm
Forum: XLSReadWritwII 6
Topic: InsertImage offset does not work for Excel97 format
Replies: 1
Views: 1298

InsertImage offset does not work for Excel97 format

Below code should insert an image at halfway in the first cell's row and column (0.5, 0.5). It works for Excel2007 format, but not for Excel97. XLS := TXLSReadWriteII5.Create(self); XLS.Version := xvExcel97; XLS.Sheets[0].Drawing.InsertImage('image.jpg', 0, 0, 0.5, 0.5, 0.75); For Excel97 format, it...
by GenasysCarl
Tue Apr 10, 2018 9:39 am
Forum: XLSReadWritwII 6
Topic: CopySheet does not copy images
Replies: 1
Views: 1412

CopySheet does not copy images

Hi,

What is the recommended way to copy images from a template sheet to a new sheet in the same workbook?

This caused file corruption 10 years ago (viewtopic.php?f=9&t=1568). Is there any way to do it yet?

Thanks,
Carl
by GenasysCarl
Tue Apr 10, 2018 8:00 am
Forum: XLSReadWritwII 6
Topic: XLS file corrupt after deleting sheets
Replies: 3
Views: 2129

XLS file corrupt after deleting sheets

Hi, After updating to the latest XLSRW6 for some bug fixes, we found a new issue with generated files sometimes being corrupt. I traced it to below code change in the following function. procedure TXLSNames_Int.AdjustSheetDelete(const ASheetIndex, ACount: integer); This is in the latest version and ...
by GenasysCarl
Thu Mar 30, 2017 12:16 pm
Forum: XLSReadWritwII 6
Topic: Possible issue in GetIsDateTime method
Replies: 1
Views: 1803

Possible issue in GetIsDateTime method

Hi Lars, A developer on my team asked if I can post the following possible issue he found. He tried to register an account for this forum, but says registration is not working? We found an issue when calling the following method in XLSSheetData5.pas : function TXLSWorksheet.GetIsDateTime(ACol, ARow:...
by GenasysCarl
Wed Mar 08, 2017 10:08 am
Forum: XLSReadWritwII 6
Topic: Sheet Visibility not working for xvExcel97 version
Replies: 1
Views: 1522

Sheet Visibility not working for xvExcel97 version

Hi, When I try to hide sheets on the old XLS format, it is still visible in the workbook when I view it. Visibility only seems to work for XLSX format. XLS.Version := xvExcel97; Sheet := XLS.Add; Sheet.Visibility := x12vVeryHidden; //I also tried x12vHidden. XLS.SaveToFile('Test.xls'); Regards, Carl
by GenasysCarl
Wed Mar 08, 2017 7:00 am
Forum: XLSReadWritwII 6
Topic: Bug in TXLSWorkbook.CopyCells
Replies: 2
Views: 1777

Re: Bug in TXLSWorkbook.CopyCells

Thanks Lars,

When is the next update scheduled?

Regards,
Carl
by GenasysCarl
Mon Mar 06, 2017 9:20 am
Forum: XLSReadWritwII 6
Topic: Bug in TXLSWorkbook.CopyCells
Replies: 2
Views: 1777

Bug in TXLSWorkbook.CopyCells

After some debugging, I found the following in XLSSheetData5.pas:

Code: Select all

Items[DestSheet].FCells.DeleteCell(C,R);
I think it should be:

Code: Select all

Items[DestSheet].FCells.DeleteCell(DestCol + (C - Col1), DestRow + (R - Row1));
Let me know if this is right. Thanks!
by GenasysCarl
Mon Jan 09, 2017 2:50 pm
Forum: XLSReadWritwII 6
Topic: Copy format from one cell and apply to area
Replies: 1
Views: 1639

Copy format from one cell and apply to area

Hi,

I would like to copy a format from one cell and then apply that format to multiple cells. What is the fastest (performance) way to do this? I have looked at the FormatCells example, but cannot figure out how to get existing formats from cells in the spreadsheet.

Thanks,
Carl
by GenasysCarl
Mon Jan 09, 2017 8:00 am
Forum: XLSReadWritwII 6
Topic: PrintArea and PrintTitles for sheets with spaces in name
Replies: 1
Views: 1630

PrintArea and PrintTitles for sheets with spaces in name

Hi, This code fails when trying to set print areas or repeating rows on sheets with spaces in the names. Sheet.PrintSettings.PrintArea(1, 1, 2, 2); If the sheet name is "Client Information", I get an error saying E4016: Uknown sheet name "Information" Is there another way to set ...