fpspreadsheet: Call Flush() at the end of TsWorksheetDataset.CopyFromDataset to make sure that the output file is written.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8687 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2023-01-16 18:51:24 +00:00
parent 8b5c04226d
commit 75b3b0004b

View File

@ -432,7 +432,7 @@ begin
with PsBlobData(buffer)^ do
Write(Data[0], Length(Data)); // Writes the data into the stream
Position := 0;
SaveToFile('test.txt');
// SaveToFile('test.txt');
end;
Position := 0;
end;
@ -718,7 +718,7 @@ var
stream: TMemoryStream;
bm: TBookmark;
codepageStr: String;
s: RawByteString;
s: RawByteString = '';
sUTF8: UTF8String;
begin
if Active then
@ -816,6 +816,7 @@ begin
end;
inc(FAutoIncValue);
FModified := true;
Flush;
finally
stream.Free;
ADataset.GotoBookmark(bm);