diff --git a/components/fpspreadsheet/xlsxooxml.pas b/components/fpspreadsheet/xlsxooxml.pas index d17b32e67..412cab585 100755 --- a/components/fpspreadsheet/xlsxooxml.pas +++ b/components/fpspreadsheet/xlsxooxml.pas @@ -1832,7 +1832,7 @@ begin '', [SCHEMAS_SPREADML])); AppendToStream(FSComments[FCurSheetNum], ''+ - ''+ + ''+ // Not necessary to specify an author here. But the node must exist! ''); AppendToStream(FSComments[FCurSheetNum], ''); @@ -1864,7 +1864,14 @@ begin AppendToStream(AStream, ''+ ''+ - ''+ comment + '' + + ''+ // this entire node could be omitted, but then Excel uses some default font out of control + ''+ +// ''+ + ''+ // it could be that color index 81 does not exist in fps files --> use rgb instead + ''+ // it is not harmful to Excel if "Tahoma" does not exist. + ''+ + ''+ + '' + comment + '' + ''+ ''); AppendToStream(AStream, @@ -2343,14 +2350,14 @@ begin // My xml viewer does not format vml files property --> format in code. AppendToStream(FSVmlDrawings[FCurSheetNum], ' '+LineEnding+{Format(} - ' ' + LineEnding + + // "data" is a comma-separated list with the ids of groups of 1024 comments -- really? // ' ', [FCurSheetNum+1]) + LineEnding + ' ' + LineEnding); AppendToStream(FSVmlDrawings[FCurSheetNum], ' '+LineEnding+ - ' '+LineEnding+ - ' '+LineEnding+ + ' ' + LineEnding + + ' ' + LineEnding + ' ' + LineEnding); // Write vmlDrawings for each comment (formatting and position of comment box) @@ -2370,20 +2377,24 @@ begin id := 1025 + FDrawingCounter; // if more than 1024 comments then use data="1,2,etc" above! -- not implemented yet // My xml viewer does not format vml files property --> format in code. AppendToStream(AStream, LineEnding + Format( - '