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; {