From 9f27990b0a1fff2e3906002f6be1bf156e508948 Mon Sep 17 00:00:00 2001 From: sekelsenmat Date: Mon, 29 Aug 2011 15:06:41 +0000 Subject: [PATCH] fpspreadsheet: Fixes remaining ooxml issues, now it actually works git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1867 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/fpspreadsheet/xlsxooxml.pas | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/components/fpspreadsheet/xlsxooxml.pas b/components/fpspreadsheet/xlsxooxml.pas index 4f1d05bbf..c6347d1ff 100755 --- a/components/fpspreadsheet/xlsxooxml.pas +++ b/components/fpspreadsheet/xlsxooxml.pas @@ -188,13 +188,13 @@ begin FWorkbookRels := XML_HEADER + LineEnding + '' + LineEnding + - '' + LineEnding + - '' + LineEnding; + '' + LineEnding + + '' + LineEnding; for i := 1 to AData.GetWorksheetCount do begin FWorkbookRels := FWorkbookRels + - Format('', [SCHEMAS_WORKSHEET, i, i+2]) + LineEnding; + Format('', [SCHEMAS_WORKSHEET, i, i+2]) + LineEnding; end; FWorkbookRels := FWorkbookRels + @@ -213,10 +213,9 @@ begin for i := 1 to AData.GetWorksheetCount do begin FWorkbook := FWorkbook + - ' ' + LineEnding + - ' ' + LineEnding + - ' ' + LineEnding; + ' ' + LineEnding + + Format(' ', [i, i, i+2]) + LineEnding + + ' ' + LineEnding; end; FWorkbook := FWorkbook + @@ -493,11 +492,11 @@ begin Format(' %s', [AValue]) + LineEnding + ' ' + LineEnding; - Inc(FSharedStringsCount); - CellPosText := TsWorksheet.CellPosToText(ARow, ACol); FSheets[FCurSheetNum] := FSheets[FCurSheetNum] + Format(' %d', [CellPosText, FSharedStringsCount]) + LineEnding; + + Inc(FSharedStringsCount); end; {